chore: rustfmt and 'docker-compose' on the CI action #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
configuration: "./.github/changelog_configuration.json" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |