forked from matze/mtheme
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use release-please and auto tagging
- Loading branch information
Showing
5 changed files
with
73 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,51 @@ on: | |
branches: | ||
- main | ||
jobs: | ||
build: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: teatimeguest/setup-texlive-action@v3 | ||
with: | ||
packages: scheme-full | ||
- name: Build and test LaTeX package | ||
- name: check | ||
run: l3build check | ||
- name: document | ||
run: l3build doc | ||
- name: install | ||
run: l3build install | ||
release: | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
needs: | ||
- build-and-test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | ||
release-type: simple | ||
- uses: actions/checkout@v4 | ||
if: ${{ steps.release.outputs.prs_created }} | ||
- uses: teatimeguest/setup-texlive-action@v3 | ||
with: | ||
packages: scheme-basic | ||
if: ${{ steps.release.outputs.prs_created }} | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: refs/pull/${{ steps.release.outputs.pr.number }}/merge | ||
if: ${{ steps.release.outputs.prs_created }} | ||
- name: tag | ||
run: l3build tag 0.1.0 | ||
if: ${{ steps.release.outputs.prs_created }} | ||
- name: Commit and push | ||
run: | | ||
l3build check | ||
l3build doc | ||
l3build install | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "chore: tag files" | ||
git push | ||
if: ${{ steps.release.outputs.prs_created }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"packages": { | ||
".": { | ||
"release-type": "simple", | ||
"bump-minor-pre-major": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |