Merge pull request #19 from koldex/feature/add-camap-fork #2
This file contains hidden or 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
| name: Create Release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Determine tag | |
| id: tag | |
| run: | | |
| base="v$(date -u +%Y.%m.%d)" | |
| existing=$(git tag -l "${base}*" | wc -l | tr -d ' ') | |
| if [ "$existing" -eq 0 ]; then | |
| echo "tag=${base}" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "tag=${base}.${existing}" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Create release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: gh release create "${{ steps.tag.outputs.tag }}" --generate-notes |