Skip to content

Bump the cargo group across 1 directory with 4 updates #67

Bump the cargo group across 1 directory with 4 updates

Bump the cargo group across 1 directory with 4 updates #67

Workflow file for this run

name: Flatpak build
on: [push]
env:
FLATPAK_ID: com.elxreno.flathub-stats
FP_BUNDLE: flathub-stats-${{ github.run_id }}.flatpak
FP_BRANCH: stable
FP_BUILD_NAME: flathub-stats
FP_BUILD_DIR: build-dir
FP_BUILD_REPO: build-repo
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install flatpak-builder
run: |
set -e
sudo add-apt-repository -y ppa:alexlarsson/flatpak
sudo apt update -y
sudo apt install -y flatpak-builder
- name: Download flatpak SDK and sources
run: |
set -e
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak-builder --install-deps-from=flathub --install-deps-only --user /dev/null packaging/flatpak/${FLATPAK_ID}.yml
flatpak-builder --download-only /dev/null packaging/flatpak/${FLATPAK_ID}.yml
- name: Build flatpak
run: |
set -e
flatpak-builder --disable-updates --disable-download --ccache --sandbox ${FP_BUILD_DIR} packaging/flatpak/${FLATPAK_ID}.yml
- name: Create flatpak bundle
run: |
set -e
ostree --repo=${FP_BUILD_REPO} init --mode=bare-user
flatpak-builder --export-only --repo=${FP_BUILD_REPO} ${FP_BUILD_DIR} packaging/flatpak/${FLATPAK_ID}.yml
flatpak build-bundle --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo ${FP_BUILD_REPO} ${FP_BUNDLE} ${FLATPAK_ID}
- name: Upload bundle
uses: actions/upload-artifact@v1
with:
name: ${{ env.FP_BUILD_NAME }}-bundle-${{ github.run_id }}
path: ${{ env.FP_BUNDLE }}