fix release version for github action (issue: 556 action-gh-release) … #40
Workflow file for this run
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
name: release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
# test: | |
# runs-on: ubuntu-latest | |
# env: | |
# PROJECT_NAME: "flintlock_release_e2e" | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Run e2es | |
# env: | |
# METAL_AUTH_TOKEN: ${{ secrets.METAL_AUTH_TOKEN }} | |
# run: | | |
# pip3 install -r test/tools/requirements.txt | |
# test/tools/run.py run-e2e -o ${{ secrets.EQUINIX_ORG_ID }} -p ${{ env.PROJECT_NAME }} | |
# - name: Cleanup project | |
# uses: weaveworks/metal-janitor-action@27a0594c5c92d85585b553fc0c5ef2a3de7bec95 | |
# with: | |
# metal_auth_token: ${{ secrets.METAL_AUTH_TOKEN }} | |
# project_names: ${{ env.PROJECT_NAME }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: '${{ github.workspace }}/go.mod' | |
check-latest: true | |
cache: false | |
- name: Build binaries | |
run: make build-release | |
- name: Store flintlock binaries | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: flintlock-binaries | |
path: bin/* | |
retention-days: 1 | |
release: | |
runs-on: ubuntu-latest | |
needs: [build] | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Download flintlock binaries | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: flintlock-binaries | |
path: bin | |
- name: Release | |
uses: softprops/action-gh-release@51cfd90a6d81cfe329568f851fe2236ab4416d17 # v2.2.0 | |
with: | |
prerelease: false | |
draft: true | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
files: | | |
bin/flintlockd_amd64 | |
bin/flintlockd_arm64 | |
bin/flintlock-metrics_amd64 | |
bin/flintlock-metrics_arm64 |