Skip to content

Update build.yml

Update build.yml #64

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}
runs-on: ubuntu-20.04
steps:
- name: Checkout this repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout baserom
uses: actions/checkout@v2
with:
repository: shishkabob27/conker-private
token: ${{ secrets.PRIVATE_REPO_ACCESS }}
path: baserom
- name: Decrypt baserom
run: echo ${{ secrets.CONKER_BASEROM_US }} | openssl enc -d -aes-256-cbc -pass stdin -pbkdf2 -in baserom/baserom.us.z64.aes -out baserom.us.z64
- name: Perform make extract (rom)
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: make extract
- name: Perform make extract (code)
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: sh -c "cd conker && make extract"
- name: Perform make (code)
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: sh -c "cd conker && make --jobs"
- name: Perform make replace
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: sh -c "cd conker && make replace"
- name: Perform make
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: make --jobs
- name: Create progress.csv
uses: docker://docker.io/shishkabob27/conker:latest
with:
args: sh -c "cd conker && make progress"
- name: HTTP Request Action
id: http_request
uses: fjogeleit/http-request-action@v1.14.1
with:
url: 'https://retroretreat.net/api/v1/conker/update_progress'
method: 'POST'
data: '{"key": "${{ secrets.PRIVATE_REPO_ACCESS }}"}'
files: '{"file": "conker/progress.csv"}'