Skip to content

Merge pull request #63 from pguyot/w20/otp29-native-records #24

Merge pull request #63 from pguyot/w20/otp29-native-records

Merge pull request #63 from pguyot/w20/otp29-native-records #24

Workflow file for this run

#
# Copyright 2025 Winford (Uncle Grumpy) <winford@object.stream>
#
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
#
# This is a workflow for atomvm/atomvm_packbeam to publish documentation to GitHub Pages
name: Publish Docs
on:
# Triggers the workflow on tags
push:
branches:
- 'master'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
LANG: C.UTF-8
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: "Set locale"
run: |
sudo locale-gen C.UTF-8
sudo update-locale LANG="C.UTF-8"
- name: "Setup BEAM"
id: beam-setup
uses: erlef/setup-beam@v1.20.4
with:
otp-version: "28.3"
rebar3-version: "3.26.0"
- name: "Checkout code"
uses: actions/checkout@v5
- name: "Setup Pages"
uses: actions/configure-pages@v5
- name: "Build Docs"
run: |
rebar3 as doc ex_doc
- name: Upload pages artifact
## Must use v3 for now due to issue actions/deploy-pages#389
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: ./doc
deploy:
# Add a dependency to the build job
needs: build
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-24.04
steps:
- name: "Setup Pages"
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
if: ${{ github.repository == 'atomvm/atomvm_packbeam' }}
id: deployment
uses: actions/deploy-pages@v4