Skip to content

Commit

Permalink
Build with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Aug 17, 2023
1 parent cf4f2c6 commit b99d13f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
pull_request:
schedule:
- cron: '0 0 * * *' # every day at midnight

env:
APPIMAGE_EXTRACT_AND_RUN: 1
TERM: xterm-256color

jobs:
appimage:
name: Build AppImage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build AppImage
run: |
./build.sh
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: AppImage
path: appimagecraft*.AppImage*

upload:
name: Create release and upload artifacts
runs-on: ubuntu-latest
needs:
- appimage
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Inspect directory after downloading artifacts
run: ls -alFR
- name: Create release and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/phw/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **/appimagecraft*.AppImage*

0 comments on commit b99d13f

Please sign in to comment.