bump actions #460
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- v* | |
pull_request: | |
workflow_dispatch: | |
repository_dispatch: | |
types: [run_build] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ps2dev/ps2dev:latest | |
steps: | |
- name: Install dependencies | |
run: | | |
apk add build-base git bash | |
- name: Workaround permission issue | |
run: | | |
git config --global --add safe.directory /__w/AthenaEnv/AthenaEnv | |
- uses: actions/checkout@v4 | |
- run: | | |
git fetch --prune --unshallow | |
- name: Compile project | |
run: | | |
make clean | |
make | |
- name: Get short SHA | |
run: echo "SHA8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV | |
- name: Upload artifacts | |
if: ${{ success() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AthenaEnv-${{ env.SHA8 }} | |
path: bin | |
- name: Compress & Rename bin folder | |
run: | | |
mv bin/ AthenaEnv/ | |
tar -zcvf AthenaEnv.tar.gz AthenaEnv | |
- name: Create Pre-release | |
if: github.ref == 'refs/heads/main' | |
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
title: "Development build" | |
files: | | |
AthenaEnv.tar.gz | |
- name: Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: AthenaEnv.tar.gz | |
tag_name: ${{ steps.tag.outputs.VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |