mirror of
https://github.com/danog/sass-site.git
synced 2024-12-11 17:09:52 +01:00
e14df6d936
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Shadow Repo
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'push'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
- run: npm ci
|
|
- run: npm run build-prod
|
|
- run: tar cf site.tar _site
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: site
|
|
path: site.tar
|
|
|
|
prep-diff-link:
|
|
name: Prep comment
|
|
runs-on: ubuntu-latest
|
|
if: github.event_name == 'pull_request' && github.event.action == 'opened'
|
|
steps:
|
|
- name: Save comment
|
|
env:
|
|
COMMENT: |
|
|
View diff of compiled files (may take a few minutes): https://github.com/${{ vars.SHADOW_OWNER }}/${{ vars.SHADOW_REPO }}/compare/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.ref }}
|
|
run: |
|
|
echo $COMMENT > ./comment.txt
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: comment
|
|
path: comment.txt
|