Skip to content

fix: Comment unused alias #38

fix: Comment unused alias

fix: Comment unused alias #38

Workflow file for this run

name: Build
on:
push:
branches:
- develop
- master
tags:
- 3.*
workflow_dispatch:
jobs:
build:
name: Build Akkoma (amd64-glibc)
runs-on: ubuntu-latest
container: hexpm/elixir:1.15.4-erlang-26.0.2-debian-bookworm-20230612
steps:
- name: Install latest version of GIT
run: |
apt-get update
apt-get install -y git
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apt-get update && apt-get install -y cmake libmagic-dev rclone zip imagemagick libmagic-dev git build-essential g++ wget
- name: Preparing build environment
run: |
(rm -rf release || true) && (rm -rf _build || true) && (rm -rf /root/.mix)
echo "import Config" > config/prod.secret.exs
mix local.hex --force && mix local.rebar --force
echo "BUILD_TAG=${GITHUB_REF#refs/(heads|tags)/}" >> $GITHUB_ENV
- name: Build Akkoma
env:
MIX_ENV: prod
run: |
echo $BUILD_TAG
mix deps.get --only prod
env PLEROMA_BUILD_BRANCH=$BUILD_TAG mix release --path release
zip akkoma.zip -r release
- name: Upload build folder as artifact
uses: actions/upload-artifact@v3
with:
name: build
path: akkoma.zip
if-no-files-found: error
retention-days: 3
- name: Upload build to a release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && github.repository == 'null2264/akkoma'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./akkoma.zip