Skip to content

Packages data

Packages data #23

Workflow file for this run

---
name: Packages data
on:
schedule:
- cron: '15 6 * * 1'
workflow_dispatch:
push:
paths:
- 'data/packages.yml'
env:
DISTRIBUTION_ID: E2461OP4YFCUOQ
BUCKET: inko-lang.org
AWS_DEFAULT_REGION: eu-west-1
jobs:
packages:
runs-on: ubuntu-latest
permissions:
contents: write
if: |
github.repository == 'inko-lang/website' && github.ref_name == 'main'
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- run: bash ./scripts/packages.sh
env:
PACKAGES_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
- run: rake deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}