Skip to content

Test Github actions #11

Test Github actions

Test Github actions #11

Workflow file for this run

name: Playground
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
artifact-upload:
name: Artifact upload
runs-on: ubuntu-latest
strategy:
matrix:
animal: [cat, dog]
steps:
- uses: actions/checkout@v4
- name: Set name
run: |
mkdir build
echo '${{ matrix.animal }}' >> build/${{ matrix.animal }}.txt
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: devops-artifact-${{ matrix.animal }}
path: build
artifact-download:
name: Artifact download
runs-on: ubuntu-latest
steps:
- name: Prepare workspace
run: mkdir build
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: build
- name: Check downloaded
run: |
ls build
clean-artifacts:
name: Clean artifacts
runs-on: ubuntu-latest
if: always()
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: darwinia-artifact