Skip to content

Commit

Permalink
build: use release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham committed May 28, 2024
1 parent 10a0925 commit cf7db39
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
41 changes: 30 additions & 11 deletions .github/workflows/release.yml
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 }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.2.0"
}
18 changes: 18 additions & 0 deletions release-please-config.json
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"
}

0 comments on commit cf7db39

Please sign in to comment.