Skip to content

Commit

Permalink
Added release block in build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fxi committed Jun 11, 2024
1 parent 4cdf8da commit 8a03d4c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 8 deletions.
47 changes: 39 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: build_accessmod
on:
push:
branches:
- main
- staging
- release

env:
DOCKER_REPO: "fredmoser"
Expand Down Expand Up @@ -68,16 +68,17 @@ jobs:
${{ env.DOCKER_REPO }}/${{ env.DOCKER_NAME }}:${{ env.AM_VERSION }}
${{ env.DOCKER_REPO }}/${{ env.DOCKER_NAME }}:${{ env.DOCKER_TAG_LATEST }}
# _
# | |
# ____ _____ ____| | _ _____ ____
# _
# | |
# ____ _____ ____| | _ _____ ____
# | _ \(____ |/ ___) |_/ ) ___ |/ ___)
# | |_| / ___ ( (___| _ (| ____| |
# | __/\_____|\____)_| \_)_____)_|
# | |_| / ___ ( (___| _ (| ____| |
# | __/\_____|\____)_| \_)_____)_|
# |_|
packer:
runs-on: ubuntu-22.04
needs: docker
if: ${{ github.ref_name === 'release' }}
name: Build VirtualBox ova
steps:
- name: Checkout
Expand All @@ -87,7 +88,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libc6 libqt5core5a libqt5dbus5 libqt5gui5 libqt5help5 libqt5opengl5 libqt5printsupport5 libqt5widgets5 libqt5x11extras5 libqt5xml5 libssl3 libstdc++6 libvpx7
- name: Install VirtualBox 7.0.14
run: |
wget https://download.virtualbox.org/virtualbox/7.0.14/virtualbox-7.0_7.0.14-161095~Ubuntu~jammy_amd64.deb
Expand All @@ -102,7 +103,7 @@ jobs:
- name: Initialize Packer Configuration
working-directory: ./packer
run: packer init alpine.pkr.hcl
env :
env:
PACKER_GITHUB_API_TOKEN: ${{ secrets.github_token }}

- name: Validate Packer Template
Expand All @@ -127,6 +128,7 @@ jobs:
update_image:
runs-on: ubuntu-latest
needs: docker
if: ${{ github.ref_name === 'release' }}
strategy:
matrix:
include:
Expand All @@ -153,6 +155,7 @@ jobs:
electron:
runs-on: ${{ matrix.os }}
needs: update_image
if: ${{ github.ref_name === 'release' }}
strategy:
matrix:
include:
Expand Down Expand Up @@ -213,3 +216,31 @@ jobs:
./electron/dist/*.dmg
./electron/dist/*.deb
./electron/dist/*-setup.exe
# ______ _
# | ___ \ | |
# | |_/ /___| | ___ __ _ ___ ___
# | // _ \ |/ _ \/ _` / __|/ _ \
# | |\ \ __/ | __/ (_| \__ \ __/
# \_| \_\___|_|\___|\__,_|___/\___|
release:
runs-on: ubuntu-latest
needs: [docker, packer, electron]
if: ${{ github.ref_name == 'release' }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: accessmod
pattern: accessmod-*

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: accessmod/**
body_path: ./release-notes.md
token: ${{ secrets.github_token }}

38 changes: 38 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# AccessMod Release

## How to Install/Update?

1. **Download** the appropriate full image / VM / Desktop from the list below.
2. **From AccessMod Desktop:** Go to `menu -> versions -> update`.
3. **From AccessMod VM:** Go to `menu -> Change / Update Version`.
4. **From AccessMod Docker:** Execute `docker pull fredmoser/accessmod:latest`.

More info here: [AccessMod Installation Guide](https://doc-accessmod.unepgrid.ch/display/EN/4.1.+Installation+overview)

## What Has Changed?

See the [Change Log](https://github.com/unige-geohealth/accessmod/blob/release/changes.md).

## Files

### AccessMod Desktop

- **Linux:** `accessmod-desktop-linux-amd64`
- **macOS:** `accessmod-desktop-mac-amd64`, `accessmod-desktop-mac-arm64`
- **Windows:** `accessmod-desktop-win-amd64`

### AccessMod Docker

- **Docker Image Archives:** `accessmod-docker-archive-amd64`, `accessmod-docker-archive-arm64`

### AccessMod VirtualBox

- **VirtualBox OVA:** `accessmod-virtualbox`

## Additional Information

AccessMod is Linux-based. Performance-wise, it works best without virtualization, e.g., directly from a Docker process. See an example [here](https://github.com/unige-geohealth/accessmod/wiki/Creating-and-using-AccessMod-using-docker-compose).

For Docker users, you can find the AccessMod Docker images on [Docker Hub](https://hub.docker.com/r/fredmoser/accessmod).

If you encounter any issues, please refer to our [Support Page](https://doc-accessmod.unepgrid.ch/display/EN/Support).

0 comments on commit 8a03d4c

Please sign in to comment.