Skip to content

Commit

Permalink
Nathan/force release (#44)
Browse files Browse the repository at this point in the history
* Revert "Update .github/workflows/release.yml"

This reverts commit e954209.

* Revert "Update .github/workflows/release.yml"

This reverts commit ee7bad3.

* Revert "GitHub Action to release on push to the main branch"

This reverts commit 4271f69.
  • Loading branch information
nagl-resourcely authored Dec 4, 2023
1 parent 1e945d2 commit ae432ea
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,16 @@ name: Release
# "v*" (e.g. v0.1.0) is created.
on:
push:
branches:
- main
tags:
- 'v*'

# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write

jobs:
determine_version_bump:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
outputs:
bump: ${{ steps.set-bump.outputs.bump }}
steps:
- name: Check PR for release tags
id: set-bump
run: |
if echo "${{ github.event.pull_request.labels.*.name }}" | grep -q "release:major"; then
echo "::set-output name=bump::major"
elif echo "${{ github.event.pull_request.labels.*.name }}" | grep -q "release:minor"; then
echo "::set-output name=bump::minor"
else
echo "::set-output name=bump::patch"
fi
goreleaser:
needs: [determine_version_bump]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -57,15 +39,3 @@ jobs:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

release-on-push:
needs: [determine_version_bump]
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- id: release
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: ${{ needs.determine_version_bump.outputs.bump }}
tag_prefix: v

0 comments on commit ae432ea

Please sign in to comment.