aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-21 00:01:24 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-21 00:01:24 +0300
commitc487e5083418ab0b78688598ec2565c50922055e (patch)
treeff0cc6a6409dcbb00d2d7fd721f43174ef51be11
parentb6cec574785267adf5880ae16955b321e073e0ee (diff)
downloadapplause2-c487e5083418ab0b78688598ec2565c50922055e.tar.gz
added a nightly builds workflow
* this will both build and publish an AppImage and publish the LDoc-generated pages as the project's website (gh-pages)
-rw-r--r--.github/workflows/nightly.yml48
1 files changed, 48 insertions, 0 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
new file mode 100644
index 0000000..d9e96f7
--- /dev/null
+++ b/.github/workflows/nightly.yml
@@ -0,0 +1,48 @@
+name: Nightly Builds
+
+on: [push, pull_request]
+
+jobs:
+ Linux:
+ # AppImages should be built on the oldest possible version.
+ # This should also match the version referenced in AppImage.yml.
+ runs-on: ubuntu-20.04
+
+ steps:
+
+ - name: Git Clone
+ uses: actions/checkout@v4.1.6
+
+ - name: Update Repositories
+ run: sudo apt-get update
+
+ - name: Build AppImage
+ run: |
+ wget -O pkg2appimage.AppImage \
+ "https://github.com/AppImageCommunity/pkg2appimage/releases/download/continuous/pkg2appimage--x86_64.AppImage"
+ chmod +x pkg2appimage.AppImage
+ ./pkg2appimage.AppImage AppImage.yml
+ chmod a+x out/*.AppImage
+ - name: Archive AppImage
+ uses: pyTooling/Actions/releaser@v1.0.5
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+ tag: nightly
+ files: out/*.AppImage
+
+ - name: Build Lua Documentation
+ run: |
+ # NOTE: The version from LuaRocks is just as old.
+ sudo apt-get install -y lua-ldoc make
+ make doc
+ - name: Publish Website
+ run: |
+ cd doc
+ touch .nojekyll
+ git init
+ cp ../.git/config ./.git/config
+ git add .
+ git config --local user.email "Website@GitHubActions"
+ git config --local user.name "GitHub Actions"
+ git commit -a -m "update ${{ github.sha }}"
+ git push -u origin +HEAD:gh-pages