Packages data #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Packages data | |
on: | |
schedule: | |
- cron: '15 6 * * 1' | |
workflow_dispatch: | |
push: | |
paths: | |
- 'source/data/packages.json' | |
env: | |
AWS_DEFAULT_REGION: eu-west-1 | |
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 rclone make awscli2 git tar | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
build | |
~/.local/share/inko/packages | |
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: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |