|
5 | 5 | DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} |
6 | 6 | DEPLOY_BRANCH: ${{ secrets.DEPLOY_BRANCH }} |
7 | 7 | 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 | | - |
67 | 8 | Android: |
68 | | - runs-on: windows-2019 |
| 9 | + runs-on: windows-2022 |
69 | 10 | needs: create_release |
70 | 11 | env: |
71 | 12 | TRAVIS_OS_NAME: android |
|
0 commit comments