use v4 instead #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pack Chrome Extension | |
on: | |
push: | |
branches: [main] | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true) | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pack extension | |
run: | | |
mkdir packed-extension | |
zip -r packed-extension/extension.zip . -x "*.git*" "packed-extension/*" "*.github/*" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packed-extension | |
path: packed-extension/extension.zip |