1
0
out-of-tree/.github/workflows/debian.yml

42 lines
943 B
YAML
Raw Normal View History

2023-05-12 00:39:50 +00:00
name: Debian
on:
2023-05-12 01:25:05 +00:00
workflow_dispatch:
2023-05-12 00:39:50 +00:00
schedule:
- cron: '45 0 * * 5'
jobs:
debian-cache:
name: Build Cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
run: go build
- name: Cache
2023-05-12 05:41:07 +00:00
run: ./out-of-tree --log-level=trace debian cache --path=debian.cache
2023-05-12 00:39:50 +00:00
- name: Archive cache
uses: actions/upload-artifact@v3
with:
name: debian-cache
path: /home/runner/debian.cache
2023-05-12 01:25:05 +00:00
- name: Upload cache
uses: BetaHuhn/do-spaces-action@v2
2023-05-12 01:25:42 +00:00
with:
access_key: ${{ secrets.ACCESS_KEY }}
secret_key: ${{ secrets.SECRET_KEY }}
space_name: ${{ secrets.SPACE_NAME }}
space_region: ${{ secrets.SPACE_REGION }}
2023-05-12 05:41:07 +00:00
source: debian.cache
2023-05-12 01:25:42 +00:00
out_dir: 1.0.0
2023-05-12 01:25:05 +00:00
2023-05-12 00:39:50 +00:00
- name: Archive logs
uses: actions/upload-artifact@v3
with:
name: debian-cache-logs
path: /home/runner/.out-of-tree/logs