Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
workflows(release): build and finish from secman release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Mar 10, 2022
1 parent 92fe645 commit 33bbc72
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release

on:
push:
tags:
- '*'

env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

permissions: write-all

jobs:
build-secman:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0

- name: Set up `Go`
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Setup `Node.js`
uses: actions/setup-node@v2.5.0
with:
node-version: 16

- name: Set up `GoReleaser`
uses: goreleaser/goreleaser-action@v2
with:
install-only: true

- name: Set up `Task`
uses: arduino/setup-task@v1

- name: Set up `Date`
run: go run ./scripts/date.go >> date.txt

- name: Build
run: BuildDate="$(cat date.txt)" goreleaser release --rm-dist --timeout 100m

0 comments on commit 33bbc72

Please sign in to comment.