diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ec27545..2bf8e257 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,20 +1,41 @@ -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/ - - name: Add zips to release - uses: softprops/action-gh-release@v1 + uses: actions/checkout@v4 with: - files: ./cursors/*.zip + submodules: true + - 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 + run: gh release upload ${{ needs.release-please.outputs.tag_name }} releases/*.zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..2be9c43c --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.2.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..85040ae7 --- /dev/null +++ b/release-please-config.json @@ -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" +}