name: Generate Credentials on: - workflow_dispatch jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Nix uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/flakehub-cache-action@main - name: Expose GitHub Runtime uses: crazy-max/ghaction-github-runtime@v2 - name: Dump credentials run: | if [[ -z "$AGE_PUBLIC_KEY" ]]; then >&2 echo 'The AGE_PUBLIC_KEY secret must be present.' >&2 echo 'You can generate one with `age-keygen -o key.txt`.' exit 1 fi cat >creds.json <creds.json" env: AGE_PUBLIC_KEY: ${{ secrets.AGE_PUBLIC_KEY }}