generated from YunoHost/example_ynh
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.22 KB
/
ynh-build-on-push-to-github-build.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
name: ynh-build-on-push-to-github_build
on:
push:
branches: [ "github_build" ]
jobs:
ynh-app-release:
runs-on: ubuntu-latest
steps:
- name: Parse data from PR
id: pr_data
run: |
echo "VERSION=0.0.0" >> $GITHUB_OUTPUT
echo "URL=https://my-test-changelog.tld" >> $GITHUB_OUTPUT
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Build release
id: build_release
run: |
chmod +x scripts/build
./scripts/build
- name: Prepare draft release
id: draft_release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ steps.build_release.outputs.YNH_ARCHIVE }}
tag_name: v${{ steps.pr_data.outputs.VERSION }}
draft: true
prerelease: false
body: |
Version built for Yunohost to ensure sub-directory install compatibility using `scripts/build` and `.github/workflows/ynh-build-on-push-to-testing.yml`
### Changelog
Cf. upstream release note: ${{ steps.pr_data.outputs.URL }}