Skip to content

Commit

Permalink
Allow for manual dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Nov 14, 2022
1 parent 2196ef7 commit d8a43bc
Showing 1 changed file with 32 additions and 31 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/tag_and_release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tag and Release

on:
workflow_dispatch:
push:
branches:
- c-api-stable
Expand Down Expand Up @@ -47,39 +48,39 @@ jobs:
fi
done
# release:
# needs: ["c_gem"]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
release:
needs: ["c_gem"]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# - name: Set up Ruby 3.1
# uses: ruby/setup-ruby@v1
# with:
# rubygems: latest
# ruby-version: 3.1
# bundler-cache: true
- name: Set up Ruby 3.1
uses: ruby/setup-ruby@v1
with:
rubygems: latest
ruby-version: 3.1
bundler-cache: true

# - name: Configure Git
# run: |
# git config --local user.email "actions@github.com"
# git config --local user.name "Actions Auto Build"
- name: Configure Git
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Actions Auto Build"
# - name: Get current version
# id: version-label
# run: |
# VERSION=$(grep VERSION lib/commonmarker/version.rb | head -n 1 | cut -d'"' -f2)
# echo "version=${VERSION}" >> $GITHUB_OUTPUT
- name: Get current version
id: version-label
run: |
VERSION=$(grep VERSION lib/commonmarker/version.rb | head -n 1 | cut -d'"' -f2)
echo "version=${VERSION}" >> $GITHUB_OUTPUT
# - name: Create tag
# run: |
# git tag -a v${{ steps.version-label.outputs.version }} -m "Release v${{ steps.version-label.outputs.version }}"
# git push origin --tags
- name: Create tag
run: |
git tag -a v${{ steps.version-label.outputs.version }} -m "Release v${{ steps.version-label.outputs.version }}"
git push origin --tags
# - name: Publish release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# gh release create v${{ steps.version-label.outputs.version }} --generate-notes
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v${{ steps.version-label.outputs.version }} --generate-notes

0 comments on commit d8a43bc

Please # to comment.