Skip to content

Commit

Permalink
👷 add publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelvalley committed Jul 19, 2024
1 parent dd6e8f1 commit 2914e33
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test

on:
push:
branches:
- master
- main
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "1.2.1"
rebar3-version: "3"
# elixir-version: "1.15.4"
- run: gleam deps download
- run: gleam test
- run: gleam format --check src test
- run: gleam publish
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: test

on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand Down
15 changes: 6 additions & 9 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
name = "parz"
version = "1.0.0"

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

For a full reference of all the available options, you can have a look at
https://gleam.run/writing-gleam/gleam-toml/.

[dependencies]
gleam_stdlib = ">= 0.34.0 and < 2.0.0"
Expand Down

0 comments on commit 2914e33

Please sign in to comment.