-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.12 KB
/
packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
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 }}