Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
ci: Add tag based release flow. (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj authored Nov 6, 2023
1 parent 07b675f commit 2d033a1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

permissions:
contents: write

on:
push:
tags:
- "v[0-9]+*"
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: moonrepo/setup-rust@v1
with:
cache: false
targets: wasm32-wasi
- uses: moonrepo/build-proto-plugin@v0
- if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
uses: ncipollo/release-action@v1
with:
artifacts: builds/*
artifactErrorsFailBuild: true
prerelease: ${{ contains(github.ref_name, '-alpha') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-rc') }}
skipIfReleaseExists: true
21 changes: 10 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ crate-type = ['cdylib']

[dependencies]
extism-pdk = "0.3.4"
proto_pdk = { version = "0.10.0" } # , path = "../../proto/crates/pdk" }
proto_pdk = { version = "0.10.1" } # , path = "../../proto/crates/pdk" }
regex = { version = "1.10.2", default-features = false, features = ["std"] }
serde = "1.0.190"
serde_json = "1.0.108"

[dev-dependencies]
proto_pdk_test_utils = { version = "0.10.0", features = [
proto_pdk_test_utils = { version = "0.10.1", features = [
"schema",
] } # , path = "../../proto/crates/pdk-test-utils" }
starbase_sandbox = "0.1.12"
Expand Down
2 changes: 1 addition & 1 deletion src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Default for ResolveSchema {
manifest_version_key: "version".to_string(),
git_url: None,
git_tag_pattern:
r"^v?(([0-9]+)\.([0-9]+)\.([0-9]+)(-[a-zA-Z\.\d]+)?(\+[-a-zA-Z\.\d]+)?)$"
r"^v?(([0-9]+)\.([0-9]+)\.([0-9]+)(-[0-9a-zA-Z\.]+)?(\+[-0-9a-zA-Z\.]+)?)$"
.to_string(),
}
}
Expand Down

0 comments on commit 2d033a1

Please sign in to comment.