Skip to content

Commit 7e2fa62

Browse files
committed
Update windbot.yml
1 parent 5d6d66e commit 7e2fa62

File tree

1 file changed

+1
-60
lines changed

1 file changed

+1
-60
lines changed

.github/workflows/windbot.yml

Lines changed: 1 addition & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,8 @@ env:
55
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
66
DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH }}
77
jobs:
8-
create_release:
9-
runs-on: ubuntu-latest
10-
outputs:
11-
output: ${{steps.create.outputs.id}}
12-
steps:
13-
- name: Create release
14-
if: startsWith(github.ref, 'refs/tags/')
15-
id: create
16-
uses: actions/create-release@v1
17-
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
with:
20-
tag_name: ${{ github.ref }}
21-
release_name: ${{ github.ref }}
22-
draft: true
23-
prerelease: false
24-
Desktop:
25-
runs-on: windows-2019
26-
needs: create_release
27-
env:
28-
TRAVIS_OS_NAME: windows
29-
steps:
30-
- name: Set ARTIFACT env var
31-
shell: bash
32-
run: |
33-
echo "ARTIFACT=WindBotIgnite-Release-$(date +%Y%m%d)-${{ github.sha }}.zip" >> $GITHUB_ENV
34-
- name: Add msbuild to PATH
35-
uses: microsoft/setup-msbuild@v2
36-
- uses: actions/checkout@v1
37-
with:
38-
fetch-depth: 1
39-
submodules: true
40-
- name: Build
41-
shell: bash
42-
run: |
43-
dotnet build WindBot.csproj --configuration=Release
44-
- name: Predeploy
45-
shell: bash
46-
run: |
47-
cd bin && mv Release WindBot
48-
7z a -tzip "$ARTIFACT" WindBot
49-
mv $ARTIFACT .. && cd ..
50-
mkdir -p assets
51-
cp $ARTIFACT assets
52-
cp Dialogs/default.json .
53-
- name: Deploy
54-
if: ${{ github.event_name == 'push' }}
55-
shell: bash
56-
run: ./ci/deploy.sh
57-
- name: Upload Release Assets
58-
if: startsWith(github.ref, 'refs/tags/')
59-
id: upload-release-assets
60-
uses: dwenegar/upload-release-assets@v1
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
with:
64-
release_id: ${{ needs.create_release.outputs.output }}
65-
assets_path: assets
66-
678
Android:
68-
runs-on: windows-2019
9+
runs-on: windows-2022
6910
needs: create_release
7011
env:
7112
TRAVIS_OS_NAME: android

0 commit comments

Comments
 (0)