-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76b61e7
commit b91f20b
Showing
1 changed file
with
2 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,14 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
# tags: | ||
# - "v*.*.*" | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
env: | ||
DSMLP_STORAGE_CONTROLLER_CA: ${{ secrets.DSMLP_STORAGE_CONTROLLER_CA }} | ||
DSMLP_STORAGE_CONTROLLER_CERT: ${{ secrets.DSMLP_STORAGE_CONTROLLER_CERT}} | ||
DSMLP_STORAGE_CONTROLLER_KEY: ${{ secrets.DSMLP_STORAGE_CONTROLLER_KEY }} | ||
DSMLP_STORAGE_CONTROLLER_PORT: ${{ secrets.DSMLP_STORAGE_CONTROLLER_PORT }} | ||
DSMLP_STORAGE_CONTROLLER_DNS: ${{ secrets.DSMLP_STORAGE_CONTROLLER_DNS }} | ||
DSMLP_STORAGE_CONTROLLER_OPTS: ${{ secrets.DSMLP_STORAGE_CONTROLLER_OPTS }} | ||
DSMLP_STORAGE_CONTROLLER_CLIENT_CERT: ${{ secrets.DSMLP_STORAGE_CONTROLLER_CLIENT_CERT }} | ||
DSMLP_STORAGE_CONTROLLER_CLIENT_KEY: ${{ secrets.DSMLP_STORAGE_CONTROLLER_CLIENT_KEY }} | ||
|
||
jobs: | ||
create-release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/v') && github.ref_type == 'tag' | ||
steps: | ||
- name: Run action for creating release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
generate_release_notes: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
go-server-release: | ||
name: Create Go server release | ||
needs: [create-release] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout actions | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run Go Release Action | ||
uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
release_tag: ${{ github.ref_name }} | ||
goos: linux | ||
goarch: amd64 | ||
project_path: ./cmd/server | ||
pre_command: go env -w GO111MODULE=auto | ||
|
||
rpm-release: | ||
name: Create RPM release | ||
needs: [create-release] | ||
|