|
1 | 1 | name: Release |
2 | 2 | on: |
3 | | - push: |
4 | | - tags: ["*"] |
| 3 | + push: |
| 4 | + tags: ["*"] |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - build: |
8 | | - runs-on: ubuntu-latest |
9 | | - steps: |
10 | | - - uses: actions/checkout@v4 |
11 | | - - uses: actions/setup-node@v4 |
12 | | - with: |
13 | | - node-version: "22" |
| 7 | + build: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + steps: |
| 10 | + - uses: actions/checkout@v4 |
| 11 | + - uses: actions/setup-node@v4 |
| 12 | + with: |
| 13 | + node-version: "22" |
14 | 14 |
|
15 | | - - run: | |
16 | | - npm install |
17 | | - npm run build |
| 15 | + - run: | |
| 16 | + npm install |
| 17 | + npm run build |
18 | 18 |
|
19 | | - - name: Package |
20 | | - run: | |
21 | | - mkdir dist |
22 | | - cp main.js manifest.json README.md dist/ |
23 | | - zip -r release.zip dist/ |
| 19 | + - name: Package |
| 20 | + run: | |
| 21 | + mkdir dist |
| 22 | + cp main.js manifest.json README.md dist/ |
| 23 | + zip -r release.zip dist/ |
24 | 24 |
|
25 | | - - uses: actions/create-release@v1 |
26 | | - id: create_release |
27 | | - env: |
28 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
29 | | - with: |
30 | | - tag_name: ${{ github.ref }} |
31 | | - release_name: ${{ github.ref }} |
| 25 | + - uses: actions/create-release@v1 |
| 26 | + id: create_release |
| 27 | + env: |
| 28 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 29 | + with: |
| 30 | + tag_name: ${{ github.ref }} |
| 31 | + release_name: ${{ github.ref }} |
32 | 32 |
|
33 | | - - uses: actions/upload-release-asset@v1 |
34 | | - env: |
35 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
36 | | - with: |
37 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
38 | | - asset_path: ./release.zip |
39 | | - asset_name: release-${{ github.ref_name }}.zip |
40 | | - asset_content_type: application/zip |
| 33 | + - uses: actions/upload-release-asset@v1 |
| 34 | + env: |
| 35 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + with: |
| 37 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 38 | + asset_path: ./release.zip |
| 39 | + asset_name: release-${{ github.ref_name }}.zip |
| 40 | + asset_content_type: application/zip |
41 | 41 |
|
42 | | - - uses: actions/upload-release-asset@v1 |
43 | | - env: |
44 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
45 | | - with: |
46 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
47 | | - asset_path: ./main.js |
48 | | - asset_name: main.js |
49 | | - asset_content_type: text/javascript |
| 42 | + - uses: actions/upload-release-asset@v1 |
| 43 | + env: |
| 44 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + with: |
| 46 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 47 | + asset_path: ./main.js |
| 48 | + asset_name: main.js |
| 49 | + asset_content_type: text/javascript |
50 | 50 |
|
51 | | - - uses: actions/upload-release-asset@v1 |
52 | | - env: |
53 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
54 | | - with: |
55 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
56 | | - asset_path: ./manifest.json |
57 | | - asset_name: manifest.json |
58 | | - asset_content_type: application/json |
| 51 | + - uses: actions/upload-release-asset@v1 |
| 52 | + env: |
| 53 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 54 | + with: |
| 55 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 56 | + asset_path: ./manifest.json |
| 57 | + asset_name: manifest.json |
| 58 | + asset_content_type: application/json |
0 commit comments