Skip to content

ci(action): update actions/upload-artifact action to v6 #149

ci(action): update actions/upload-artifact action to v6

ci(action): update actions/upload-artifact action to v6 #149

Workflow file for this run

name: PR
on:
pull_request:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version-file: package.json
- name: Install Deps
run: npm install
# - name: Test
# run: |
# npm run test
- name: Build
run: |
npm run build
- run: |
zip -qq -9 -vr s3-cloudflare-purge.zip ./dist/*
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: s3-cloudflare-purge
path: s3-cloudflare-purge.zip
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ github.ref_name }} s3-cloudflare-purge.zip