Skip to content

Commit

Permalink
Merge pull request #7 from la3mmchen/feature/AddReleaseWorkflow
Browse files Browse the repository at this point in the history
Add a release workflow
  • Loading branch information
la3mmchen committed Jan 6, 2024
2 parents 2310db1 + 895a778 commit e55e4be
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/release-devel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: release-devel
on: [push]

env:
GO_VERSION: 1.21.0

permissions:
contents: write
packages: write

jobs:

test-version-darwin-arm64:
needs: tests
name: release-darwin-arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action
with:
github_token: ${{ secrets.PUSHTOKEN }}
goos: darwin
goarch: arm64
project_path: ./milbi
overwrite: true
release_tag: devel
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: release
on:
push:
branches:
- main
tags:
- '*'

env:
GO_VERSION: 1.21.0

permissions:
contents: write
packages: write

jobs:
release-darwin-arm64:
needs: tests
name: release-darwin-arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action
with:
github_token: ${{ secrets.PUSHTOKEN }}
goos: darwin
goarch: arm64
project_path: ./milbi
overwrite: true
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: build
Expand Down
Empty file added TODO.md
Empty file.

0 comments on commit e55e4be

Please sign in to comment.