Skip to content

Commit

Permalink
Merge branch 'main' into d4hines/apply-command
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilou97 authored Feb 18, 2024
2 parents d10b150 + 1f45bb2 commit 18f76a1
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 128 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:
- main
tags:
- '**' # TODO: add a good pattern match on version XX.XX.XX
permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
- name: Installing cargo-edit
run: cargo install cargo-edit
# TODO: check if tag is superior than the current version
Expand All @@ -26,6 +30,7 @@ jobs:
git config --global user.name "pilou"
git add .
git commit -m "release $GITHUB_REF_NAME"
git push --force
- name: cargo login
run: cargo login ${{ secrets.CRATES_IO_API_TOKEN }}
- name: Publishing
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
.direnv
.direnv
.vscode
Loading

0 comments on commit 18f76a1

Please sign in to comment.