Delete outdated URL #6
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: O'Reilly Artifact Demo Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build artifact | |
run: | | |
# Replace this with your build commands | |
echo "Building artifact..." | |
mkdir artifacts | |
echo "Hello, World!" > artifacts/my_artifact.txt | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: my-artifact | |
path: artifacts | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: my-artifact | |
- name: Display artifact contents | |
run: | | |
# Replace this with your deployment commands | |
cat my-artifact/my_artifact.txt |