|
8 | 8 | tags: |
9 | 9 | - release-* |
10 | 10 | jobs: |
11 | | - build_and_deploy: |
| 11 | + build: |
| 12 | + |
12 | 13 | runs-on: ubuntu-latest |
| 14 | + |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + node-version: [16.x] |
| 18 | + |
13 | 19 | steps: |
14 | 20 | - uses: actions/checkout@v2 |
15 | | - - run: yarn install && yarn build && yarn release |
16 | | - - uses: FirebaseExtended/action-hosting-deploy@v0 |
| 21 | + - name: Use Node.js ${{ matrix.node-version }} |
| 22 | + uses: actions/setup-node@v1 |
17 | 23 | with: |
18 | | - repoToken: '${{ secrets.GITHUB_TOKEN }}' |
19 | | - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_WEB_SEQUENCE_LOCAL }}' |
20 | | - channelId: live |
21 | | - projectId: web-sequence-local |
22 | | - env: |
23 | | - FIREBASE_CLI_PREVIEWS: hostingchannels |
| 24 | + node-version: ${{ matrix.node-version }} |
| 25 | + - run: yarn install && yarn build |
| 26 | + - run: yarn release |
| 27 | + - run: yarn deploy:prod --token ${{ secrets.FIREBASE_TOKEN }} |
24 | 28 | - name: Create Release |
25 | 29 | id: create_release |
26 | 30 | uses: actions/create-release@v1 |
27 | 31 | env: |
28 | | - GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} |
| 32 | + GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} |
29 | 33 | with: |
30 | | - tag_name: ${{ github.ref }} |
31 | | - release_name: Release ${{ github.ref }} |
32 | | - draft: false |
33 | | - prerelease: false |
| 34 | + tag_name: ${{ github.ref }} |
| 35 | + release_name: Release ${{ github.ref }} |
| 36 | + draft: false |
| 37 | + prerelease: false |
34 | 38 | - name: Upload Release Asset |
35 | 39 | id: upload-release-asset |
36 | 40 | uses: actions/upload-release-asset@v1 |
37 | 41 | env: |
38 | | - GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} |
| 42 | + GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }} |
39 | 43 | with: |
40 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
41 | | - asset_path: ./extension.zip |
42 | | - asset_name: chrome-extension.zip |
43 | | - asset_content_type: application/zip |
| 44 | + upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps |
| 45 | + asset_path: ./extension.zip |
| 46 | + asset_name: chrome-extension.zip |
| 47 | + asset_content_type: application/zip |
44 | 48 |
|
0 commit comments