Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Merge pull request #57 from tkbstudios/dev #2

Merge pull request #57 from tkbstudios/dev

Merge pull request #57 from tkbstudios/dev #2

name: Master Release
on:
push:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Get repository information
uses: actions/github-script@v7
with:
script: |
const repo = context.payload.repository.full_name;
console.log(`Working on repository: ${repo}`);
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make tar
- name: Download and extract CEdev
run: |
curl -sL https://github.com/CE-Programming/toolchain/releases/download/v11.2/CEdev-Linux.tar.gz | tar xz
- name: Add CEdev to PATH
run: |
echo "export PATH=$PATH:$PWD/CEdev/bin" >> $GITHUB_ENV
source $GITHUB_ENV
- name: Make GFX
run: make gfx
- name: Build NETCHAT.8xp
run: make
- name: Upload NETCHAT.8xp
uses: actions/upload-artifact@v2
with:
name: NETCHAT.8xp
path: bin/NETCHAT.8xp
- name: Set final commit status
uses: myrotvorets/set-commit-status-action@master
if: always()
with:
sha: ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
- name: Create Stable Release
id: create_release
uses: actions/create-release@v1
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/upload-release-asset@v1
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