feat: adds support for actions/upload-artifact@v4 (#17) (fixed #14) #7
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: CI | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create test file | |
run: echo hello > world.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: my-artifact | |
path: world.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: my-artifact-2 | |
path: world.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: my-artifact-3 | |
path: world.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: you-artifact | |
path: world.txt | |
- name: Delete (specific, glob disabled) | |
uses: ./ | |
with: | |
name: my-artifact | |
useGlob: false | |
- name: Delete (pattern, glob enabled) | |
uses: ./ | |
with: | |
name: my-* | |
- name: Delete (specific, glob enabled) | |
uses: ./ | |
with: | |
name: you-artifact | |