2020-05-03 21:09:41 +02:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
2020-05-24 01:14:15 +02:00
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # everyday at 10am
|
2020-05-03 21:09:41 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2021-01-29 12:29:31 +01:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2021-03-30 20:00:40 +02:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2021-01-29 12:29:31 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2021-03-30 20:00:40 +02:00
|
|
|
- 'releases/v*'
|
2020-05-03 21:09:41 +02:00
|
|
|
|
|
|
|
jobs:
|
2020-05-18 17:18:07 +02:00
|
|
|
armored:
|
2020-05-03 21:35:54 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
2020-05-06 00:31:46 +02:00
|
|
|
- windows-latest
|
2020-05-03 21:09:41 +02:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-08 02:56:13 +01:00
|
|
|
uses: actions/checkout@v2
|
2020-05-12 20:18:51 +02:00
|
|
|
-
|
2020-05-12 20:48:02 +02:00
|
|
|
name: Get test key and passphrase
|
2021-05-09 11:08:44 +02:00
|
|
|
uses: actions/github-script@v4
|
2020-05-12 20:30:44 +02:00
|
|
|
id: test
|
2020-05-12 20:36:05 +02:00
|
|
|
with:
|
|
|
|
script: |
|
2020-05-12 20:37:28 +02:00
|
|
|
const fs = require('fs');
|
2020-05-12 20:36:05 +02:00
|
|
|
core.setOutput('pgp', fs.readFileSync('.github/test-key.pgp', {encoding: 'utf8'}));
|
|
|
|
core.setOutput('passphrase', fs.readFileSync('.github/test-key.pass', {encoding: 'utf8'}));
|
2020-05-03 21:09:41 +02:00
|
|
|
-
|
2020-05-18 17:18:07 +02:00
|
|
|
name: Import GPG
|
2020-05-07 20:46:52 +02:00
|
|
|
id: import_gpg
|
2020-05-03 21:09:41 +02:00
|
|
|
uses: ./
|
2020-05-04 20:59:11 +02:00
|
|
|
with:
|
2020-09-06 22:03:16 +02:00
|
|
|
gpg-private-key: ${{ steps.test.outputs.pgp }}
|
|
|
|
passphrase: ${{ steps.test.outputs.passphrase }}
|
|
|
|
git-user-signingkey: true
|
|
|
|
git-commit-gpgsign: true
|
|
|
|
git-tag-gpgsign: true
|
2021-08-10 08:46:50 +02:00
|
|
|
git-push-gpgsign: if-asked
|
2020-05-07 20:46:52 +02:00
|
|
|
-
|
|
|
|
name: GPG user IDs
|
|
|
|
run: |
|
|
|
|
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
|
|
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
2020-05-12 20:48:02 +02:00
|
|
|
echo "name: ${{ steps.import_gpg.outputs.name }}"
|
2020-05-07 20:46:52 +02:00
|
|
|
echo "email: ${{ steps.import_gpg.outputs.email }}"
|
2020-05-18 17:18:07 +02:00
|
|
|
|
|
|
|
base64:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- macOS-latest
|
|
|
|
- windows-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-08 02:56:13 +01:00
|
|
|
uses: actions/checkout@v2
|
2020-05-18 17:15:05 +02:00
|
|
|
-
|
2020-05-18 17:18:07 +02:00
|
|
|
name: Get test key and passphrase
|
2021-05-09 11:08:44 +02:00
|
|
|
uses: actions/github-script@v4
|
2020-05-18 17:18:07 +02:00
|
|
|
id: test
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
const fs = require('fs');
|
|
|
|
core.setOutput('pgp-base64', fs.readFileSync('.github/test-key-base64.pgp', {encoding: 'utf8'}));
|
|
|
|
core.setOutput('passphrase', fs.readFileSync('.github/test-key.pass', {encoding: 'utf8'}));
|
|
|
|
-
|
|
|
|
name: Import GPG
|
|
|
|
id: import_gpg
|
2020-05-18 17:15:05 +02:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-09-06 22:03:16 +02:00
|
|
|
gpg-private-key: ${{ steps.test.outputs.pgp-base64 }}
|
|
|
|
passphrase: ${{ steps.test.outputs.passphrase }}
|
|
|
|
git-user-signingkey: true
|
|
|
|
git-commit-gpgsign: true
|
|
|
|
git-tag-gpgsign: true
|
2021-08-10 08:46:50 +02:00
|
|
|
git-push-gpgsign: if-asked
|
2020-05-18 17:15:05 +02:00
|
|
|
-
|
|
|
|
name: GPG user IDs
|
|
|
|
run: |
|
2020-05-18 17:18:07 +02:00
|
|
|
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
|
|
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
|
|
|
echo "name: ${{ steps.import_gpg.outputs.name }}"
|
|
|
|
echo "email: ${{ steps.import_gpg.outputs.email }}"
|