Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Main Workflow
on:
pull_request: {}
push:
branches: [ "main" ]
branches: [ "main", "beta" ]


concurrency:
Expand Down Expand Up @@ -65,7 +65,9 @@ jobs:
needs: unit-tests

# Skip running if the PR is coming from a fork or is created by dependabot or snyk due to missing repo secrets.
if: github.event.pull_request.head.repo.fork == false && (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
# Only run on pushes to main or PRs targeting main.
if: github.event.pull_request.head.repo.fork == false && (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot') &&
(github.ref == 'refs/heads/main' || github.base_ref == 'main')

steps:
- name: Check out the code
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release Beta

on:
push:
tags:
# Prerelease tags only, e.g. v1.2.3-beta.1. Stable releases such as
# v1.2.3 are handled by release.yml.
- "v[0-9]+.[0-9]+.[0-9]+-*"
Comment thread
duedares-rvj marked this conversation as resolved.

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0 # This ensures all history and tags are fetched
path: auth0-cli

- name: Set up Go
uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
with:
go-version-file: auth0-cli/go.mod
check-latest: true

# GoReleaser automatically marks SemVer prerelease tags (those with a
# "-suffix") as GitHub prereleases. Homebrew and Scoop PRs are
# intentionally omitted so beta builds never reach package managers.
- name: Run GoReleaser
Comment thread
duedares-rvj marked this conversation as resolved.
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # pin@6.2.1
with:
version: "2.7.0"
args: release --clean
workdir: 'auth0-cli'
env:
GITHUB_TOKEN: ${{ github.token }}
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Release
on:
push:
tags:
- "v*"
# Stable releases only, e.g. v1.2.3. Prerelease tags such as
# v1.2.3-beta.1 are handled by release-beta.yml.
- "v[0-9]+.[0-9]+.[0-9]+"


permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Security
on:
pull_request: {}
push:
branches: [ "main" ]
branches: [ "main", "beta" ]
schedule:
- cron: "30 0 1,15 * *"

Expand Down
Loading