forked from OctoLinker/OctoLinker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update release flow * fixup! Update release flow * Update .github/workflows/release.yml Co-authored-by: Brian Surowiec <[email protected]> Co-authored-by: Brian Surowiec <[email protected]>
- Loading branch information
1 parent
55e1efd
commit 2483f2f
Showing
5 changed files
with
43 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,46 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
release: | ||
types: [published] | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- run: yarn install | ||
- run: yarn build | ||
- run: 'yarn release' | ||
env: | ||
CLIENT_ID: ${{ secrets.PUBLISHER_CHROME_CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.PUBLISHER_CHROME_CLIENT_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.PUBLISHER_CHROME_REFRESH_TOKEN }} | ||
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} | ||
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} | ||
EXTENSION_ID: 'jlmafbaeoofdegohdhinkhilhclaklkp' | ||
- name: Get version from tag | ||
id: tag_name | ||
run: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} | ||
shell: bash | ||
|
||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Install node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
|
||
- run: yarn install | ||
- run: yarn version ${{ steps.tag_name.outputs.current_version }} | ||
- run: yarn build | ||
|
||
- name: Package dist folder | ||
run: tar -zcvf octolinker-${{ steps.tag_name.outputs.current_version }}.tar.gz ./dist | ||
|
||
- name: Upload release to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: octolinker-${{ steps.tag_name.outputs.current_version }}.tar.gz | ||
|
||
- name: Publish release | ||
run: yarn release | ||
env: | ||
CLIENT_ID: ${{ secrets.PUBLISHER_CHROME_CLIENT_ID }} | ||
CLIENT_SECRET: ${{ secrets.PUBLISHER_CHROME_CLIENT_SECRET }} | ||
REFRESH_TOKEN: ${{ secrets.PUBLISHER_CHROME_REFRESH_TOKEN }} | ||
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} | ||
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} | ||
EXTENSION_ID: 'jlmafbaeoofdegohdhinkhilhclaklkp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "OctoLinker", | ||
"version": "6.10.2", | ||
"version": "0.0.0", | ||
"engines": { | ||
"node": ">= 16", | ||
"npm": ">= 7" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters