-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from tembo-io/extension-ci
add ci for publish to trunk
- Loading branch information
Showing
5 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release pg_auto_dw | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ./extension | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "README.md" | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "README.md" | ||
release: | ||
types: | ||
- created | ||
jobs: | ||
publish: | ||
if: github.event_name == 'release' | ||
name: trunk publish | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
pg-version: [14, 15, 16] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Rust stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Install stoml and pg-trunk | ||
shell: bash | ||
run: | | ||
set -xe | ||
wget https://github.com/freshautomations/stoml/releases/download/v0.7.1/stoml_linux_amd64 &> /dev/null | ||
mv stoml_linux_amd64 stoml | ||
chmod +x stoml | ||
sudo mv stoml /usr/local/bin/ | ||
cargo install pg-trunk | ||
- name: trunk build | ||
working-directory: ./extension | ||
run: | | ||
~/.cargo/bin/trunk build --pg-version ${{ matrix.pg-version }} | ||
- name: trunk publish | ||
working-directory: ./extension | ||
env: | ||
TRUNK_API_TOKEN: ${{ secrets.TRUNK_AUTH_TOKEN }} | ||
run: ~/.cargo/bin/trunk publish |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Contributing to `pg_auto_dw` | ||
|
||
## Releases | ||
|
||
`pg_auto_dw` follows [semantic versioning](semver.org) and is released to [pgt.dev](https://pgt.dev/extensions/pg_auto_dw). | ||
|
||
To release, follow these steps: | ||
|
||
1. Create a PR updating the version in `Cargo.toml` and `Trunk.toml`. These two values must agree. | ||
2. Merge the PR into the `main` branch. | ||
3. [Create the release](https://github.com/tembo-io/pg_auto_dw/releases/new) | ||
1. Use the tag format `vX.Y.Z` where `X.Y.Z` is the version number. e.g. `v0.1.0`. This version should be the same value as in `Cargo.toml` and `Trunk.toml`. | ||
2. Click "Generated release notes" to auto-populate the release notes or fill in with your own content and notes. | ||
3. Click "Publish release" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[extension] | ||
name = "pg_auto_dw" | ||
version = "0.0.1" | ||
repository = "https://github.com/tembo-io/pg_auto_dw" | ||
license = "PostgreSQL" | ||
description = "An auto data warehouse extension for Postgres." | ||
homepage = "https://github.com/tembo-io/pg_auto_dw" | ||
documentation = "https://github.com/tembo-io/pg_auto_dw" | ||
categories = ["analytics", "orchestration"] | ||
loadable_libraries = [{ library_name = "pg_auto_dw", requires_restart = true }] | ||
|
||
[build] | ||
postgres_version = "15" | ||
platform = "linux/amd64" |