Skip to content

Commit

Permalink
update + actions
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed Nov 10, 2023
1 parent f44c9c1 commit 19bc5f6
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 9 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
push:
tags: ["v*"]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: "26.1"
gleam-version: "0.32.4"

- run: |
version="v$(cat gleam.toml | grep -m 1 "version" | sed -r "s/version *= *\"([[:digit:].]+)\"/\1/")"
if [ "$version" != "${{ github.ref_name }}" ]; then
echo "tag '${{ github.ref_name }}' does not match the version in gleam.toml"
echo "expected a tag name 'v$version'"
exit 1
fi
name: check version
- run: gleam format --check

- run: gleam test

- run: gleam publish -y
env:
HEXPM_USER: ${{ secrets.HEX_USERNAME }}
HEXPM_PASS: ${{ secrets.HEX_PASSWORD }}

- uses: softprops/action-gh-release@v1
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:

- uses: erlef/setup-beam@v1
with:
otp-version: "26.0"
gleam-version: "0.29.0"
otp-version: "26.1"
gleam-version: "0.32.4"

- run: gleam format --check

Expand Down
6 changes: 3 additions & 3 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name = "gleam_community_path"
version = "1.0.0"
version = "0.1.0"
licences = ["Apache-2.0"]
description = "Path parsing and manipulation"
repository = { type = "github", user = "gleam-community", repo = "path" }

[dependencies]
gleam_stdlib = "~> 0.29"
gleam_stdlib = "~> 0.32"

[dev-dependencies]
gleeunit = "~> 0.10"
gleeunit = "~> 1.0"
8 changes: 4 additions & 4 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# You typically do not need to edit this file

packages = [
{ name = "gleam_stdlib", version = "0.29.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "24581B17879AA903B3E7531869D9460730C2F772A1C02C774ABF75710CCC4CFE" },
{ name = "gleeunit", version = "0.10.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "ECEA2DE4BE6528D36AFE74F42A21CDF99966EC36D7F25DEB34D47DD0F7977BAF" },
{ name = "gleam_stdlib", version = "0.32.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "07D64C26D014CF570F8ACADCE602761EA2E74C842D26F2FD49B0D61973D9966F" },
{ name = "gleeunit", version = "1.0.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D3682ED8C5F9CAE1C928F2506DE91625588CC752495988CBE0F5653A42A6F334" },
]

[requirements]
gleam_stdlib = "~> 0.29"
gleeunit = "~> 0.10"
gleam_stdlib = { version = "~> 0.32" }
gleeunit = { version = "~> 1.0" }

0 comments on commit 19bc5f6

Please sign in to comment.