git-backporting/.github/workflows/publish-gha.yml
2022-12-22 13:14:37 +01:00

28 lines
No EOL
697 B
YAML

##
# Publish new action tag(s) for downstream consumption
##
name: Publish
# Manual or automatic release
on:
release:
types: [published, edited]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node
uses: actions/setup-node@v3
# Compile dist/index.js and bundle with action.yml
# Force push major and minor tags, e.g. v1, v1.0
# See documentation: https://github.com/JasonEtco/build-and-tag-action
- uses: JasonEtco/build-and-tag-action@v2
env:
GITHUB_TOKEN: ${{ github.token }}