Clean up and flesh out readme #10
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: Automatic Builds | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Vita SDK | |
run: | | |
git clone https://github.com/vitasdk/vdpm | |
cd vdpm | |
./bootstrap-vitasdk.sh | |
./install-all.sh | |
env: | |
VITASDK: /usr/local/vitasdk | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Compile | |
run: | | |
mkdir -p build | |
cd build | |
cmake .. | |
make -j$(nproc) | |
env: | |
VITASDK: /usr/local/vitasdk | |
- name: Upload | |
uses: actions/upload-artifact@v2 | |
with: | |
name: vitacontrol | |
path: build/vitacontrol.skprx | |
update-release: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Delete old release | |
uses: dev-drprasad/[email protected] | |
with: | |
delete_release: true | |
tag_name: release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get artifacts | |
uses: actions/download-artifact@v2 | |
- name: Package artifacts | |
run: for i in ./*; do zip -r -j ${i}.zip $i; done | |
- name: Create new release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: Rolling Release | |
body: These are automatically updated builds of the latest commit. | |
artifacts: "*.zip" | |
tag: release | |
token: ${{ secrets.GITHUB_TOKEN }} |