Skip to content

Commit

Permalink
Update: github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
telk5093 committed May 6, 2024
1 parent e422163 commit 0a89b55
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,31 @@ on:

jobs:
build:
# On Ubuntu 20.04
runs-on: ubuntu-20.04
# On Ubuntu 22.04
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: '3.8'

- name: Install Dependencies
run: |
pip3 install nml
pip install nml
- name: Build NewGRF
run: make all

- name: Set variables
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD 2>/dev/null)"
run: echo "sha_short=$(git rev-parse --short HEAD 2>/dev/null)" >> $GITHUB_OUTPUT

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Korean_Train_Set_${{ steps.vars.outputs.sha_short }} # Name with sha short hash
path: generated/Korean_Train_Set*.tar

0 comments on commit 0a89b55

Please sign in to comment.