Skip to content

Commit

Permalink
Create file_upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 authored Mar 1, 2024
1 parent 3153056 commit f357b4c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/file_upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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

0 comments on commit f357b4c

Please sign in to comment.