Skip to content

Update file_upload.yml #2

Update file_upload.yml

Update file_upload.yml #2

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
archive-build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Step 1 - Create a temporary artifact downloads folder
run: mkdir downloads
- name: step 2 - Add artifacts to publish to the temp folder
run: |
cd downloads
echo 'alpha' > alpha.html
echo 'bravo' > bravo.html
echo 'charlie' > charlie.html
cd ..
- name: Step 3 - Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: assets-for-download
path: 'downloads'