Skip to content

Commit

Permalink
Update compile.yml
Browse files Browse the repository at this point in the history
If this works, we're good to go
  • Loading branch information
FM1337 authored Jan 3, 2021
1 parent 0e89836 commit 3a4e8fd
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,30 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: registry.external.fm1337.com:5000/pksm_docker
credentials:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: "Clone"
run: git clone --recurse-submodules -j8 https://github.com/FlagBrew/PKSM.git
- name: "Build"
working-directory: "./PKSM"
run: |
make
zip -r PKSM.zip out/ 3ds/out/PKSM.cia 3ds/out/PKSM.3dsx 3ds/out/PKSM.elf
zip -r PKSM.zip 3ds/out/PKSM.cia 3ds/out/PKSM.3dsx 3ds/out/PKSM.elf
- name: "Push"
working-directory: "./PKSM"
run: "curl -F 'cia=@3ds/out/PKSM.cia' -F '[email protected]' -F '3dsx=@3ds/out/PKSM.3dsx' --header 'secret: ${{ secrets.DEPLOY_SECRET }}' --header 'commit: ${{ GITHUB_SHA }}' {{ secrets.PUSH_URL}}"

0 comments on commit 3a4e8fd

Please sign in to comment.