Github action基础使用

Introduction Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you’d like, including CI/CD, and combine actions in a completely customized workflow. Quick Start 在根目录下创建目录.github/workflows, Create action 创建文件:action.yaml name: GitHub Actions Demo on: [push] jobs: Explore-GitHub-Actions: runs-on: ubuntu-latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - name: Check out repository code uses: actions/checkout@v2 - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls ${{ github.workspace }} - run: echo "🍏 This job's status is ${{ job.status }}." Param Info action参数介绍 ...

一月 24, 2025 · 2 分钟 · anoya

使用acme.sh + CF部署服务

Generate let’s encrypt(TLS) use acme.sh script Install acme.sh execute this command on your terminal. curl https://get.acme.sh | sh -s email=my@example.com email 可以设置成个人或者省略 命令执行完成后,会在~目录下创建一个.acme.sh 文件夹 cd ~/.acme.sh entry acme.sh directory Get config from CF 在登陆 CloudFlare 中,需要两个参数进行配置 CF_TOKEN: need you generate key CF_Account_ID: just copy it from the given position of page CF_Account_ID 登陆 cf 账号,选择域名后,位置所在如下图 AccountID值便是账户ID CF_Token 在上一步获取账户 ID 下方有一个获取您的 API 令牌 点击创建,对应配置选择如下 使用 编辑区域 DNS 对应添加框选中的区域后,点击 继续以显示摘要 点击创建令牌,得到当前 Token(注意保存,只显示这一次) ![[CleanShot 2024-02-03 at 17.20.42@2x.png]] 可使用下面 curl 命令测试 ...

十一月 22, 2024 · 1 分钟 · anoya