Added SSO config options to the env #29
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: Build Rolling Release (macOS) | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
releases-matrix: | |
name: Release Go Binary | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [darwin] | |
goarch: [amd64, arm64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set Values | |
run: echo "VERSION=rolling" >> $GITHUB_ENV && echo "BUILD_DATE=$(date -u '+%d %b %Y')" >> $GITHUB_ENV | |
- name: Build | |
uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
project_path: "." | |
binary_name: "ghostwriter-cli" | |
ldflags: -s -w -X "github.com/GhostManager/Ghostwriter_CLI/cmd/config.Version=${{ env.VERSION }}" -X "github.com/GhostManager/Ghostwriter_CLI/cmd/config.BuildDate=${{ env.BUILD_DATE }}" | |
release_tag: rolling | |
overwrite: true | |
- name: Update Rolling Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: Rolling Release (unstable) | |
tag_name: rolling | |
prerelease: true | |
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} | |
body: | | |
This is the rolling release of Ghostwriter CLI compiled from source (${{ github.sha }}). | |
The repository updates releases automatically to keep them up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}. | |
Releases were last built on ${{ env.BUILD_DATE }}. |