Default Release #44
Workflow file for this run
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: Default Release | |
on: | |
create: | |
jobs: | |
upload-dev: | |
name: upload-dev | |
if: startsWith(github.ref, 'refs/heads/release/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Import GPG key | |
id: import_gpg | |
uses: Scalr/[email protected] | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
- id: Auth | |
uses: google-github-actions/auth@v2 | |
with: | |
credentials_json: ${{ secrets.DEV_GCP_SA_KEY }} | |
- name: Set up Cloud SDK | |
uses: google-github-actions/setup-gcloud@v2 | |
- name: Create Development Tag | |
run: | | |
BRANCH=${{ github.head_ref || github.ref_name }} | |
CLEAN_BRANCH=$(echo "$BRANCH" | sed 's/[\/]/-/g') | |
git tag v1.0.0-rc-$CLEAN_BRANCH | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: "~> v2" | |
args: release --skip=publish | |
env: | |
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | |
- name: Upload Provider to Registry | |
uses: ./.github/actions/upload-provider | |
with: | |
gcs-bucket: ${{ secrets.DEV_BUCKET_NAME }} | |
registry-domain: ${{ secrets.DEV_DOMAIN }} | |
gpg-key-id: ${{ steps.import_gpg.outputs.fingerprint }} | |
gpg-pub-key: ${{ steps.import_gpg.outputs.pubkey }} | |
- name: Update Network Mirror | |
uses: ./.github/actions/update-network-mirror | |
with: | |
gcs-bucket: ${{ secrets.DEV_BUCKET_NAME }} | |
registry-domain: ${{ secrets.DEV_DOMAIN }} | |
dry-run: false |