-
Notifications
You must be signed in to change notification settings - Fork 47
37 lines (35 loc) · 1.37 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
# Before running this, have the changelog and keeweb-version files updated for the new version
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "The version to build, tag and publish to the appstore, without any v prefix"
required: true
commit_email:
description: "The email address used for the release commit"
required: true
default: "[email protected]"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare Keeweb
run: |
git clone -b "$(cat keeweb-version)" https://github.com/keeweb/keeweb.git keeweb-source
sudo npm install -g grunt
- name: Build and publish
run: |
git config --local user.email "$COMMIT_EMAIL"
git config --local user.name "Github Actions Release Job"
git remote set-url origin "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git"
echo "$APPSTORE_KEY" > "$SIGNING_KEY"
bin/release "$VERSION"
env:
VERSION: ${{github.event.inputs.version}}
COMMIT_EMAIL: ${{github.event.inputs.commit_email}}
APPSTORE_KEY: ${{secrets.APPSTORE_KEY}}
NC_AUTH_TOKEN: ${{secrets.NC_AUTH_TOKEN}}
SIGNING_KEY: ${{github.workspace}}/keeweb.key
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}