-
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.
chore: Add GitHub workflow to publish release
- Loading branch information
1 parent
f21e7ea
commit 03344f8
Showing
2 changed files
with
45 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build and Publish Artifact | ||
|
||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Yarn install | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: install | ||
dir: core | ||
|
||
- name: Compile application | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: compile | ||
dir: core | ||
|
||
- name: Build artifact | ||
uses: borales/actions-yarn@v4 | ||
with: | ||
cmd: generate:artifact | ||
dir: core | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: artifacts/terraapprove |
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