Skip to content

Commit

Permalink
Update GitHub Actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
taupiqueur committed Nov 4, 2024
1 parent ca169bf commit bcb6d40
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: Release CI

on: [push, pull_request]

env:
GH_TOKEN: ${{ github.token }}

jobs:
release:
create_release:
name: Create release
runs-on: ubuntu-latest
steps:
Expand All @@ -15,31 +12,28 @@ jobs:

- name: Create release
run: |
# Create tag: nightly
git tag --force nightly
git push --force origin nightly
# Create release: nightly
gh release delete nightly --yes || true
gh release create nightly --title 'Nightly builds' --notes-file CHANGELOG.md --prerelease
# On Ubuntu, due to snaps,
# GitHub Actions fails with “mkdir: cannot create directory ‘/run/user/1001’: Permission denied” for Inkscape.
# runs-on: ubuntu-latest
# run: sudo snap install inkscape
build:
name: Build release
needs: release
runs-on: macos-latest
git tag -f nightly
git push -f origin nightly
gh release delete nightly -y || :
gh release create nightly -t 'Nightly builds' -F CHANGELOG.md -p
env:
GH_TOKEN: ${{ github.token }}

create_archive:
name: Create chrome-mpv-nightly.zip
needs: create_release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install packages
run: brew install --cask inkscape
run: sudo snap install inkscape

- name: Build release
run: make release version=nightly
run: make release name=chrome-mpv version=nightly

- name: Upload release
- name: Upload artifact
run: gh release upload nightly releases/chrome-mpv-nightly.zip
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit bcb6d40

Please sign in to comment.