Skip to content

[OPS-1448] TEST

[OPS-1448] TEST #2

Workflow file for this run

# © 2019-2023 Serokell <[email protected]>
# © 2019-2023 Lars Jellema <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
name: CI
on:
pull_request:
push: #[master]
env:
CDN_DISTRIBUTION_ID: E13UN1J1JFIWUZ
CDN_BUCKET: s3://nixfmt.serokell.io
jobs:
check:
runs-on: [self-hosted, nix]
steps:
- uses: actions/checkout@v3
- name: reuse lint
run: nix shell .#packages.x86_64-linux.reuse -c reuse lint
- name: build
run: nix build .#nixfmt-static
deploy:
steps:

Check failure on line 28 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 28, Col: 5): Required property is missing: runs-on
- uses: actions/checkout@v3
- name: deploy webdemo
run: |
nix build .#nixfmt-webdemo
nix shell .#awscli -c aws s3 cp --recursive result/ "$CDN_BUCKET"
# delete files that don't exist anymore, use `--size-only` so behavior won't depend on local file timestamps
nix shell .#awscli -c aws s3 sync --delete --size-only result/ "$CDN_BUCKET"
nix shell .#awscli -c aws cloudfront create-invalidation --distribution-id "$CDN_DISTRIBUTION_ID" --paths '/*'