Skip to content

fixup! re-init tree #69

fixup! re-init tree

fixup! re-init tree #69

Workflow file for this run

name: Release
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
persist-credentials: "false"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: "latest"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "pnpm"
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ">=1.17.7"
- name: Install pnpm dependencies
run: pnpm install
- name: Build chrome extension artifacts
run: pnpm run build
env:
SIMKL_CLIENT_ID: ${{ secrets.SIMKLCLIENTID }}
SIMKL_CLIENT_SECRET: ${{ secrets.SIMKLCLIENTSECRET }}
- name: Hash artifacts
run: sha256sum artifacts/*/*
if: startsWith(github.ref, 'refs/tags/v')
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
name: artifacts
path: artifacts/
retention-days: 1
release:
name: Release on GitHub
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Get release information
id: release_info
run: |
echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: artifacts
path: artifacts/
- name: Hash artifacts
run: sha256sum artifacts/*/*
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.release_info.outputs.TAG }}
name: ${{ steps.release_info.outputs.TAG }}
body: |
Download and install the extension from the [extension store](https://github.com/Simkl/Sync-Simkl-to-Plex-Chrome-Extension#readme) of your browser.
Learn more about this release from the [changelog](https://github.com/Simkl/Sync-Simkl-to-Plex-Chrome-Extension/blob/master/CHANGELOG.md#changelog).
files: artifacts/*/*
fail_on_unmatched_files: true
draft: true