Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Stuff the multiline string in an envvar (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
illright authored Mar 1, 2024
1 parent d7ed7b4 commit 2025920
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ jobs:
- name: Create a release 🔖
uses: actions/github-script@v7
env:
CHANGELOG: ${{ steps.fetch-changelog.outputs.result }}
with:
script: |
await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: "${{ steps.fetch-version.outputs.result }}",
name: "${{ steps.fetch-version.outputs.result }}",
body: "${{ steps.fetch-changelog.outputs.result }}"
body: process.env.CHANGELOG,
});
4 changes: 2 additions & 2 deletions .github/workflows/build-pr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ jobs:
# The ".." is to go outside the docs directory

- name: Upload the PR number 📤
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr_number
path: pr_number.txt

- name: Upload the built docs 📤
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/__sapper__/export/attractions/${{ github.event.number }}/
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pr-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: echo "PR_NUMBER=$(cat pr_number.txt)" >> $GITHUB_ENV

- name: Publish 🚀
uses: peaceiris/actions-gh-pages@4eb285e828117bca26638192c3ed309c622e7bad
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pnpm run export --basepath attractions/${{ github.event.inputs.prefix }}
- name: Publish 🚀
uses: peaceiris/actions-gh-pages@4eb285e828117bca26638192c3ed309c622e7bad
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/__sapper__/export/attractions/${{ github.event.inputs.prefix }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
pnpm run export --basepath attractions
- name: Publish 🚀
uses: peaceiris/actions-gh-pages@4eb285e828117bca26638192c3ed309c622e7bad
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/__sapper__/export/attractions/
Expand Down

0 comments on commit 2025920

Please sign in to comment.