Skip to content

🚀 A GitHub action to publish a new release of the repository

Notifications You must be signed in to change notification settings

clicampo/action-publish-semver-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish SemVer release

Examples

Staging

name: Deploy to staging
on:
  push:
    branches:
      - main

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          # This is necessary
          fetch-depth: 0
      - uses: clicampo/action-publish-semver-release@v1
        with:
          github-token: ${{ secrets.AUTH_TOKEN }}
          git-committer-name: Release bot
          git-committer-email: [email protected]
          slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
          project-url: ${{ github.server_url }}/${{ github.repository }}
          production-action-url: ${{ github.server_url }}/${{ github.repository }}/actions/workflows/release-prod.yml

Production

name: Deploy to production
on:
  workflow_dispatch:
    
jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          # This is necessary
          fetch-depth: 0
      - uses: clicampo/action-publish-semver-release@v1
        id: publish-semver
        with:
          github-token: ${{ secrets.AUTH_TOKEN }}
          git-committer-name: Release bot
          git-committer-email: [email protected]
          release-candidate: 'false'
          slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
          project-url: ${{ github.server_url }}/${{ github.repository }}
      - run: echo "Releasing version ${{ steps.publish-semver.outputs.next-version }}"

About

🚀 A GitHub action to publish a new release of the repository

Resources

Stars

Watchers

Forks

Packages

No packages published