Skip to content

Commit f985889

Browse files
committed
Create release.
1 parent b1d649e commit f985889

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,23 @@ jobs:
2323
- run: yarn install && yarn webpack && yarn build
2424
- run: yarn release
2525
- run: yarn deploy:staging --token ${{ secrets.FIREBASE_TOKEN }}
26-
- name: Upload artifacts
27-
uses: actions/upload-artifact@v2
26+
- name: Create Release
27+
id: create_release
28+
uses: actions/create-release@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GH_ACTIOIN_TOKEN }}
2831
with:
29-
name: chrome-extension
30-
path: extension
32+
tag_name: ${{ github.ref }}
33+
release_name: Release ${{ github.ref }}
34+
draft: false
35+
prerelease: false
36+
- name: Upload Release Asset
37+
id: upload-release-asset
38+
uses: actions/upload-release-asset@v1
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GH_ACTION_TOKEN }}
41+
with:
42+
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
43+
asset_path: ./extension-*.zip
44+
asset_name: Chrome Extension
45+
asset_content_type: application/zip

0 commit comments

Comments
 (0)