forked from rockcrafters/java-rockcraft-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.06 KB
/
release-github.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
name: Deploy to github
on:
workflow_dispatch:
jobs:
build:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 5
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
server-id: central
server-username: ${{ secrets.GITHUB_USERNAME }}
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Setup LXD
uses: canonical/setup-lxd@main
with:
channel: 5.21/candidate
- name: Install rockcraft
run: |
sudo snap install rockcraft --classic
- name: Publish to Github Packages
id: deploy
run: |
./gradlew publish -i
shell: bash
env:
GHP_USERNAME: ${{ secrets.GHP_USERNAME }}
GHP_TOKEN: ${{ secrets.GHP_TOKEN }}
GHP_REPO: $${{ secrets.GHP_REPO }}