Skip to content

Packages data

Packages data #86

Workflow file for this run

---
name: Packages data
on:
schedule:
- cron: '15 6 * * 1'
workflow_dispatch:
push:
paths:
- 'source/data/packages.json'
jobs:
packages:
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/inko:latest
permissions:
contents: write
if: |
github.repository == 'inko-lang/website' && github.ref_name == 'main'
steps:
- name: Installing dependencies
run: microdnf install --quiet --assumeyes make git tar npm
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
build
~/.local/share/inko/packages
~/.npm
key: ${{ runner.os }}
- run: git config --global --add safe.directory $PWD
- name: Update package data
run: |
bash ./scripts/packages.sh
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- name: Deploy website
run: make setup build deploy
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}