Merge pull request #20 from natilou/initial-version
feat: initial version
This commit is contained in:
commit
fe1f47d4fa
|
|
@ -13,6 +13,9 @@ jobs:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|
@ -27,26 +30,18 @@ jobs:
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: TriPSs/conventional-changelog-action@v3
|
uses: TriPSs/conventional-changelog-action@v3
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.PAT }}
|
||||||
git-branch: 'release'
|
git-branch: 'release'
|
||||||
|
|
||||||
- name: create release
|
- name: create release
|
||||||
run: |
|
uses: actions/create-release@v1
|
||||||
curl -L \
|
if: ${{ steps.changelog.outputs.skipped == 'false' }}
|
||||||
-X POST \
|
env:
|
||||||
-H "Accept: application/vnd.github+json" \
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
|
with:
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
tag_name: ${{ steps.changelog.outputs.tag }}
|
||||||
https://api.github.com/repos/${{ github.repository }}/releases \
|
release_name: ${{ steps.changelog.outputs.tag }}
|
||||||
-d '{
|
body: ${{ steps.changelog.outputs.clean_changelog }}
|
||||||
"tag_name": "${{ steps.changelog.outputs.tag }}",
|
|
||||||
"target_commitish":"release",
|
|
||||||
"name": "${{ steps.changelog.outputs.tag }}",
|
|
||||||
"body": "${{ steps.changelog.outputs.clean_changelog }}",
|
|
||||||
"draft": false,
|
|
||||||
"prerelease": false,
|
|
||||||
"generate_release_notes": true
|
|
||||||
}'
|
|
||||||
|
|
||||||
build-and-push-image:
|
build-and-push-image:
|
||||||
needs: release
|
needs: release
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue