Skip to content

- Add Oauth authentication #25

- Add Oauth authentication

- Add Oauth authentication #25

Workflow file for this run

name: Create release & Generate executables
permissions: write-all
on:
push:
tags:
- 'v*'
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
Changes in this Release
${{ github.event.head_commit.message }}
draft: false
prerelease: false
- name: Add Swagger to release
uses: shogo82148/actions-upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./file-system-service.swagger.yml
create_dist:
name: Create dist directory
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create directory
run: mkdir ./dist
release-linux-gui-amd64:
name: release linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
goos: linux
goarch: amd64
md5sum: false
binary_name: file-system-service-linux
retry: 3
release-windows-gui-amd64:
name: release windows/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
goos: windows
goarch: amd64
md5sum: false
binary_name: file-system-service-windows
retry: 3
release-darwin-gui-amd64:
name: release darwin/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
goos: darwin
goarch: amd64
md5sum: false
binary_name: file-system-service-darwin-amd64
retry: 3
release-darwin-gui-arm64:
name: release darwin/arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.TOKEN }}
goos: darwin
goarch: arm64
md5sum: false
binary_name: file-system-service-darwin-arm64
retry: 3