|
1 | | -name: Release new version of addon to WoW Interface |
| 1 | +name: Release new version of addon |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - # Enables a button to manually run this against the main branch |
6 | 4 | push: |
7 | | - # Enables automatic deploys off pushes/merges into the main branch |
8 | | - branches: [ main ] |
| 5 | + tags: |
| 6 | + - v* |
9 | 7 |
|
10 | 8 | jobs: |
11 | 9 | build: |
12 | 10 | runs-on: ubuntu-latest |
13 | 11 |
|
14 | 12 | steps: |
15 | | - - name: Checkout the code |
16 | | - uses: actions/checkout@v2 |
| 13 | + - name: Checkout the code |
| 14 | + uses: actions/checkout@v2 |
17 | 15 |
|
18 | | - - name: Create 'dist' folder |
19 | | - run: mkdir OpenThosePouches/ |
| 16 | + - name: Package and Upload to all the places |
| 17 | + uses: BigWigsMods/packager@v2 |
| 18 | + env: |
| 19 | + WAGO_API_TOKEN: ${{secrets.WAGO_API_TOKEN}} |
| 20 | + WOWI_API_TOKEN: ${{secrets.WOWI_API_TOKEN}} |
| 21 | + GITHUB_OAUTH: ${{secrets.GITHUB_TOKEN}} |
20 | 22 |
|
21 | | - - name: Put everything into a folder called OpenThosePouches |
22 | | - run: cp -r OpenThosePouches.lua LICENSE README.md OpenThosePouches.toc OpenThosePouches/ |
23 | | - |
24 | | - - name: Zip it good |
25 | | - run: zip -9 -r OpenThosePouches.zip OpenThosePouches/ |
26 | | - |
27 | | - - name: Parse WoW Addon Verions |
28 | | - id: get_versions |
29 | | - uses: icbat/parse-wow-addon-version@v1.1.0 |
30 | | - with: |
31 | | - tocfile: OpenThosePouches.toc |
32 | | - |
33 | | - - name: Create GH Release |
34 | | - id: create_release |
35 | | - uses: actions/create-release@v1 |
36 | | - env: |
37 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
38 | | - with: |
39 | | - tag_name: ${{ steps.get_versions.outputs.addon_version }} |
40 | | - release_name: Release ${{ steps.get_versions.outputs.addon_version }} |
41 | | - draft: false |
42 | | - prerelease: false |
43 | | - |
44 | | - - name: Upload GH Release Asset |
45 | | - id: upload-release-asset |
46 | | - uses: actions/upload-release-asset@v1 |
47 | | - env: |
48 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
49 | | - with: |
50 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
51 | | - asset_path: ./OpenThosePouches.zip |
52 | | - asset_name: OpenThosePouches.zip |
53 | | - asset_content_type: application/zip |
54 | | - |
55 | | - - name: Upload to WoW Interface |
56 | | - uses: icbat/wow-addon-upload-action@v1.0.3 |
57 | | - with: |
58 | | - id: 26222 |
59 | | - zipFilePath: OpenThosePouches.zip |
60 | | - compatible: ${{ steps.get_versions.outputs.supported_version_semantic }} |
61 | | - version: ${{ steps.get_versions.outputs.addon_version }} |
62 | | - apiKey: ${{ secrets.wowi_api_token }} |
0 commit comments