install curl via sudo #25
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: Build SFOS 4.6 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: coderus/sailfishos-platform-sdk-aarch64:4.6.0.13 | |
steps: | |
- name: Setup and Check Environment | |
run: | | |
whoami | |
pwd | |
ls -la /home/mersdk | |
- name: Manual Checkout | |
run: | | |
cd /home/mersdk | |
git clone https://github.com/conradhuebler/harbour-tidalplayer.git | |
cd harbour-tidalplayer | |
git submodule update --init --recursive | |
ls -la | |
- name: Build noarch | |
working-directory: /home/mersdk/harbour-tidalplayer | |
env: | |
HOME: /home/mersdk | |
run: | | |
pwd | |
mb2 -t SailfishOS-4.6.0.13-aarch64 build | |
- name: Rename RPM to noarch | |
run: | | |
cd /home/mersdk/harbour-tidalplayer/RPMS/ | |
mv harbour-tidalplayer-*-1.aarch64.rpm harbour-tidalplayer-master-1.noarch.rpm | |
ls -la | |
- name: Install curl | |
run: | | |
devel-su zypper --non-interactive install curl | |
- name: Upload to Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cd /home/mersdk/harbour-tidalplayer/RPMS/ | |
curl -H "Authorization: token $GITHUB_TOKEN" \ | |
-H "Content-Type: application/x-rpm" \ | |
--data-binary @harbour-tidalplayer-master-1.noarch.rpm \ | |
"https://uploads.github.com/repos/conradhuebler/harbour-tidalplayer/releases/nightly/assets?name=harbour-tidalplayer-master-1.noarch.rpm" |