Skip to content

Commit 2914e33

Browse files
committed
👷 add publish command
1 parent dd6e8f1 commit 2914e33

File tree

3 files changed

+30
-12
lines changed

3 files changed

+30
-12
lines changed

.github/workflows/publish.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: erlef/setup-beam@v1
16+
with:
17+
otp-version: "26.0.2"
18+
gleam-version: "1.2.1"
19+
rebar3-version: "3"
20+
# elixir-version: "1.15.4"
21+
- run: gleam deps download
22+
- run: gleam test
23+
- run: gleam format --check src test
24+
- run: gleam publish

.github/workflows/test.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: test
22

33
on:
44
push:
5-
branches:
6-
- master
7-
- main
85
pull_request:
96

107
jobs:

gleam.toml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
name = "parz"
22
version = "1.0.0"
33

4-
# Fill out these fields if you intend to generate HTML documentation or publish
5-
# your project to the Hex package manager.
6-
#
7-
# description = ""
8-
# licences = ["Apache-2.0"]
9-
# repository = { type = "github", user = "username", repo = "project" }
4+
description = "A simple parser combinator library"
5+
licences = ["Apache-2.0"]
6+
repository = { type = "github", user = "sftsrv", repo = "parz" }
107
# links = [{ title = "Website", href = "https://gleam.run" }]
11-
#
12-
# For a full reference of all the available options, you can have a look at
13-
# https://gleam.run/writing-gleam/gleam-toml/.
8+
9+
For a full reference of all the available options, you can have a look at
10+
https://gleam.run/writing-gleam/gleam-toml/.
1411

1512
[dependencies]
1613
gleam_stdlib = ">= 0.34.0 and < 2.0.0"

0 commit comments

Comments
 (0)