-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
11 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 |
---|---|---|
@@ -1,20 +1,39 @@ | ||
name: "Cursor release" | ||
name: release | ||
|
||
on: | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "*" | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
id: release | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
tag_name: ${{ steps.release.outputs.tag_name }} | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: release-please | ||
if: ${{ needs.release-please.outputs.release_created }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: List files | ||
run: ls -la cursors/ | ||
uses: actions/checkout@v4 | ||
- uses: extractions/setup-just@v2 | ||
- name: Install dependencies | ||
run: sudo apt update && sudo apt install -y inkscape | ||
- name: Generate cursors | ||
run: just all | ||
- name: Build zips | ||
run: just zip | ||
- name: Add zips to release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ./cursors/*.zip | ||
run: gh release upload ${{ needs.release-please.outputs.tag_name }} releases/*.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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.2.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"last-release-sha": "31a284853779d1b179c2b8597f3c81c401e5ad1e", | ||
"draft": true, | ||
"packages": { | ||
".": { | ||
"package-name": "", | ||
"release-type": "simple", | ||
"draft-pull-request": true, | ||
"extra-files": [ | ||
{ "type": "generic", "path": "README.md" } | ||
] | ||
} | ||
}, | ||
"changelog-sections": [ | ||
{ "type": "build", "section": "Build system & distribution", "hidden": false } | ||
], | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
} |