Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chtushar committed Sep 19, 2023
1 parent 04aa04d commit 5f572ad
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release
on:
release:
types:
- published

jobs:
release:
timeout-minutes: 10

runs-on: ubuntu-latest

steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.20.x

- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/cache@v3
with:
path: |
dashboard/.eslintcache
dashboard/node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}

- name: Install Dependencies
run: cd dashboard && npm install

- name: Build dashboard
run: cd dashboard && npm run build

- name: Build Binary
run: |
go build
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5f572ad

Please sign in to comment.