Repository navigation
69 lines (60 loc) · 1.71 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (60 loc) · 1.71 KB
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
63
64
65
66
67
68
69
name: release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-plz-release:
name: release publish
if: ${{ github.repository_owner == 'ratatui' }}
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.DEDICATED_TOKEN }}
- name: linux dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: release-plz
uses: release-plz/action@v0.5
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.DEDICATED_TOKEN }}
release-plz-pr:
name: release PR
if: ${{ github.repository_owner == 'ratatui' }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
concurrency:
group: release-plz-${{ github.ref }}
cancel-in-progress: false
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.DEDICATED_TOKEN }}
- name: linux dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: release-plz
uses: release-plz/action@v0.5
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.DEDICATED_TOKEN }}