-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.1 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
38
39
40
41
42
43
---
name: Release
on:
workflow_dispatch:
inputs:
name:
description: 'The name of the package to release'
required: true
version:
description: 'The version to release'
required: true
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/aur:main
steps:
- uses: actions/checkout@v4
- name: Updating permissions
run: setfacl -R -m u:build:rwx .
- name: Running tests
run: bash scripts/test.sh "${{ github.event.inputs.name }}"
release:
needs:
- test
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/aur:main
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Updating permissions
run: setfacl -R -m u:build:rwx .
- name: Updating PKGBUILD
run: |
bash scripts/update.sh inko "${{ github.event.inputs.version }}"
- name: Updating AUR repository
run: |
bash scripts/aur.sh inko \
"${{ github.event.inputs.version }}" \
"${{ secrets.AUR_SSH_KEY }}"