Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhou26 authored Apr 8, 2024
1 parent 0663111 commit 2b63090
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: build
name: Build

on: workflow_dispatch

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,13 +39,15 @@ jobs:
aurora/aurora-darwin-amd64.tar.gz
aurora/aurora-freebsd-amd64.tar.gz
- name: Create release
- name: Get latest version
run: |
version=$(git describe --tags $(git rev-list --tags --max-count=1))
echo "VERSION=$version" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v1
env:
GHCR_PAT: ${{ secrets.GHCR_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
files: |
Expand All @@ -62,4 +59,7 @@ jobs:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: $
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 8

0 comments on commit 2b63090

Please sign in to comment.