Update README.md #2
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
# deploy the source code to github on every commit tagged with "v*" | |
# workflow for deploying is then: | |
# get the main branch ready for a release then | |
# $ git checkout main | |
# $ git tag v1.1.2 -m "v1.1.2" | |
# $ git push --follow-tags upstream main | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
jobs: | |
deploy: | |
name: Deploy | |
if: success() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'schedule' | |
runs-on: ubuntu-latest | |
permissions: | |
# This permission allows writing releases | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: 🚢 Ship the release! | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: './*' | |