forked from quarkus-qe/quarkus-test-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.44 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
pull_request:
types: [closed]
paths:
- '.github/project.yml'
jobs:
release:
runs-on: ubuntu-latest
name: release
if: ${{github.event.pull_request.merged == true}}
steps:
- uses: actions/checkout@v4
- uses: radcortez/project-metadata-action@master
name: Retrieve project metadata
id: metadata
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
- uses: ./.github/actions/deploy
with:
repository-id: 'oss.sonatype'
release-version: ${{steps.metadata.outputs.current-version}}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
ossrh-token: ${{ secrets.OSSRH_TOKEN }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
ossrh-username: ${{ secrets.OSSRH_USERNAME }}
- name: Configure Git
shell: bash
run: |
gh auth setup-git
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GH_REPO: ${{github.repository}}
- name: Tag the HEAD branch and push the tag to GitHub
shell: bash
run: |
git reset --hard
git tag $CURRENT_FRAMEWORK_VERSION
git push origin --tags
env:
CURRENT_FRAMEWORK_VERSION: ${{steps.metadata.outputs.current-version}}