This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
Update README.md #2
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: Release Master Stable NETCHAT Build | |
on: | |
push: | |
branches: | |
master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@main | |
- name: Fetch submodules | |
run: git submodule update --init --recursive | |
- name: Get repository information | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const repo = context.payload.repository.full_name; | |
console.log(`The repository is ${repo}`); | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y make tar | |
- name: Download and extract CEdev | |
run: | | |
curl -sL github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Linux.tar.gz | tar xz | |
- name: Add CEdev to PATH | |
run: | | |
echo "CEdev/bin" >> $GITHUB_PATH | |
echo $GITHUB_PATH | |
- name: Make GFX | |
run: make gfx | |
- name: Build NETCHAT.8xp | |
run: make | |
- name: Upload NETCHAT.8xp | |
uses: actions/upload-artifact@v3 | |
with: | |
name: NETCHAT.8xp | |
path: bin/NETCHAT.8xp | |
- name: Set final commit status | |
uses: myrotvorets/set-commit-status-action@master | |
if: always() | |
with: | |
sha: ${{ steps.comment-branch.outputs.head_sha }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: ${{ job.status }} | |
- name: Create Development Release | |
id: create_release | |
uses: actions/create-release@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: V${{ github.run_number }} | |
release_name: V${{ github.run_number }} | |
draft: false | |
prerelease: false | |
- name: Add NETCHAT.8xp to Release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: bin/NETCHAT.8xp | |
asset_name: NETCHAT.8xp | |
asset_content_type: application/octet-stream |