-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (51 loc) · 1.61 KB
/
release.yml
File metadata and controls
58 lines (51 loc) · 1.61 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
name: Generate Canyon-SQL release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
jobs:
publish:
name: Publish Canyon-SQL
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Installing `docker-compose`
run: sudo apt -y install docker-compose
- name: Installing `gssapi` headers
run: sudo apt -y install gcc libgssapi-krb5-2 libkrb5-dev libsasl2-modules-gssapi-mit
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CRATES_IO_TOKEN }}
publish-delay: 15000
args: --all-features
release-publisher:
needs: 'publish'
permissions:
contents: write
name: Generate a new release and update the CHANGELOG
runs-on: ubuntu-latest
steps:
- name: Generate a new Canyon-SQL release on GitHub
uses: actions/create-release@v1
id: create-release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: "Update the CHANGELOG.md for the release"
uses: mikepenz/release-changelog-builder-action@v3.7.0
with:
configuration: "./.github/changelog_configuration.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}