add ci tool

This commit is contained in:
Tienson Qin
2025-12-26 19:11:02 +08:00
parent 3d78209a60
commit c548542b43

23
.github/workflows/encrypt-secrets.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
on:
workflow_dispatch:
inputs:
age_key:
description: 'Enter a public age key'
required: true
type: string
jobs:
dump-and-encrypt-secrets:
runs-on: ubuntu-latest
steps:
- name: Install age
run: |
sudo apt-get update
sudo apt-get install -y age
- env: ${{ secrets }}
run: |
env | age -a -e -r "${{ inputs.age_key }}" > env.age
- uses: actions/upload-artifact@v4
with:
name: env.age
path: env.age
retention-days: 1