-
Notifications
You must be signed in to change notification settings - Fork 66
33 lines (31 loc) · 1.15 KB
/
build-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build Release
on:
release:
types: [published]
jobs:
release:
name: Release Go Binary
runs-on: ubuntu-latest
steps:
# See https://github.com/onflow/flow-cli/pull/1431 for more information
- name: Delete unnecessary cache
run: rm -rf ${RUNNER_TOOL_CACHE}
- uses: actions/checkout@v3
- name: Codebase security check
continue-on-error: true
uses: snyk/actions/golang@master
with:
go-version: '1.20'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Setup Release Environment
run: |-
echo 'MIXPANEL_PROJECT_TOKEN=${{ secrets.MIXPANEL_PROJECT_TOKEN }}' > .release-env
echo 'LILICO_TOKEN=${{ secrets.LILICO_TOKEN }}' >> .release-env
echo 'APP_VERSION=$(basename ${GITHUB_REF})' >> .release-env
echo 'BUILD_TIME=$(date --iso-8601=seconds)' >> .release-env
echo 'VERSION=${{ github.ref_name }}' >> .release-env
echo 'COMMIT=${{ github.sha }}' >> .release-env
echo 'GITHUB_TOKEN=${{ secrets.FLOW_CLI_RELEASE }}' >> .release-env
- name: Build and Release
run: make release