Skip to content

DImuthuUpe is testing out GitHub Actions #4

DImuthuUpe is testing out GitHub Actions

DImuthuUpe is testing out GitHub Actions #4

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions
on:
release:
types: [published]
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: Print the tag name
run: |
echo ${{ github.ref }}
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- run: echo "This job's status is ${{ job.status }}."
- run: mvn clean install
- name: List files in the repository
run: |
ls ${{ github.workspace }}
- name: Upload file 1
run: |
gh release upload ${{github.event.release.tag_name}} agent/service/target/MFT-Agent-0.01-bin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload file 2
run: |
gh release upload ${{github.event.release.tag_name}} standalone-service/target/Standalone-Service-0.01-bin.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}