-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (60 loc) · 2.1 KB
/
release-test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Test release
on:
pull_request:
branches: ["main"]
jobs:
snapshot:
name: Test GoReleaser Snapshot
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1
- name: Import Signature key
shell: bash
run: |
echo -e "$GPG_PRIVATE_KEY" > gpg_key.asc
openssl rsa -in gpg_key.asc -pubout -out [email protected]
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Docker Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run GoReleaser Snapshot
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: --snapshot --skip-publish --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCOOP_BUCKET_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# - name: Build APK repo
# uses: ./.github/actions/make-apkindex
# with:
# apk_files: dist/*.apk
# signature_key: "${{ secrets.GPG_PRIVATE_KEY }}"
# signature_key_name: [email protected]
# destination: dist/repo
# - name: Commit repo to kaweezle.com
# uses: cpina/github-action-push-to-another-repository@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.REPO_ACCESS_TOKEN }}
# with:
# source-directory: dist/repo
# destination-github-username: kaweezle
# destination-repository-name: kaweezle.github.io
# # TODO: replace with kaweezle-devel
# user-name: antoinemartin
# user-email: [email protected]
# target-branch: release-krmfnbuiltin-test
# target-directory: docs/repo
# commit-message: krmfnbuiltin APK repo ${{ github.ref_name }}