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

fix: Get automatic releases working #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{secrets.RELEASE_TOKEN}}
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
Expand All @@ -26,9 +28,7 @@ jobs:
cp $release_zip /tmp
git clean -f
echo "release_zip=/tmp/$(basename $release_zip)" >> $GITHUB_OUTPUT
- run: npm run release:patch -- --ci --github.release \
--git.pushRepo=https://${{secrets.RELEASE_TOKEN}}@github.com/open-nomie/nomie6-oss.git \
--github.assets=${{steps.clean_working_dir.outputs.release_zip}}
- run: npm run release:patch -- --ci --github.release --github.assets=${{steps.clean_working_dir.outputs.release_zip}}
env:
GIT_COMMITTER_NAME: Nomie Release Bot
GIT_AUTHOR_NAME: Nomie Release Bot
Expand All @@ -39,9 +39,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST \
curl -f -X POST \
-H "Authorization: Bearer ${{secrets.RELEASE_TOKEN}}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/open-nomie/open-nomie.github.io/actions/workflows/deploy.yml/dispatches \
https://api.github.com/repos/open-nomie/open-nomie.github.io/actions/workflows/publish.yml/dispatches \
-d '{"ref": "master"}'