Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions
on:
push:
tags:
- '*'

jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."

- name: List files in the repository
run: |
ls ${{ github.workspace }}

- run: echo "This job's status is ${{ job.status }}."
- run: zip -r mycoolapp_main mycoolapp/src/main

- name: List files in the repository
run: |
ls ${{ github.workspace }}

- name: Create Release
id: create_release_id
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}

- name: Upload Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release_id.outputs.upload_url }}
asset_path: mycoolapp_main.zip
asset_name: mycoolapp_main.zip
asset_content_type: application/zip