Merge branch 'ignite:main' into main #1
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: Release nightly | |
on: | |
workflow_dispatch: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
consecutiveness: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: ignite/consecutive-workflow-action@main | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-nightly: | |
runs-on: ubuntu-latest | |
needs: [ consecutiveness ] | |
env: | |
working-directory: go/src/github.com/ignite/cli | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Delete the nightly release | |
uses: dev-drprasad/[email protected] | |
with: | |
tag_name: nightly | |
delete_release: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push new nightly tag | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: nightly | |
tag_prefix: "" | |
- name: Create the new nightly release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: nightly | |
name: nightly | |
body: "Install and move the CLI to your bin directory: `curl https://get.ignite.com/cli@nightly! | bash`" | |
prerelease: true | |
releases-binaries: | |
name: Release Go Binary | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [linux, darwin] | |
goarch: [amd64, arm64] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: wangyoucao577/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
project_path: "./ignite/cmd/ignite" | |
binary_name: "ignite" | |
asset_name: ignite-nightly-${{ matrix.goos }}-${{ matrix.goarch }} | |
release_name: "nightly" | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
ldflags: -s -w -X github.com/ignite/cli/ignite/version.Version=nightly | |
retry: 10 |