Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use release-please #20

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}