- name: deploy file to prod server if: github.ref == 'refs/heads/master' #对分支进行检测 uses: wlixcc/SFTP-Deploy-Action@v1.0 with: username: 'username' server: '${{ secrets.SERVER_IP }}' #正式服务器地址 ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} local_path: './build/*...
# action.yml 配置文件name:'SSH Auto Deploy'# 名称description:'ssh auto deploy'# 描述author:'hengkx'# 作者branding:icon:'crosshair'# 使用的是Feather的图标color:'gray-dark'# 图标颜色inputs:# 输入参数HOST:# 服务器地址description:'remote host'# 参数描述required:true# 是否必填USERNAME:# 用户名d...
# 6. Push your local project to your GitHub Repository name: Linux_Container_Workflow on: [push] #on: # push: # branches: # - master jobs: build-and-deploy: runs-on: ubuntu-latest environment: dev steps: - name: 'Checkout GitHub Action' uses: actions/checkout@v3 #- name: 'Login ...
官方actions库:https://github.com/actions-name:Use Node.js ${{matrix.node-version}}# 步骤2uses:actions/setup-node@v1# 作用:安装nodejswith:node-version:${{matrix.node-version}}# 版本-name:Deploy# 步骤3 部署到github gh-pagesenv:# 设置环境变量GITHUB_TOKEN:${{secrets.ACCESS_TOKEN}}# token...
When a GitHub Actions workflow deploys to an environment, the environment is displayed on the main page of the repository. For more information about viewing deployments to environments, see "Viewing deployment history." Monitoring workflow runs Every workflow run generates a real-time gra...
What is a GitHub Actions workflow? AGitHub Actions workflowis a process that you set up in your repository to automate software-development lifecycle tasks, including GitHub Actions. With a workflow, you can build, test, package, release, and deploy any project on GitHub. ...
https://github.com/marketplace/actions/deploy-to-github-pages https://cli.vuejs.org/zh/guide/deployment.html#github-pages 目录 第一步:配置workflows 第二步:开启GitHub Pages 使用GitHub Pages部署一个在线Demo,每次更新代码都要手动打包,切换...
使用工作流将数据库更新部署到 Azure Database for PostgreSQL 灵活服务器,以开始使用 GitHub Actions。 先决条件 需要: 具有活动订阅的 Azure 帐户。 免费创建帐户。 包含示例数据的 GitHub 存储库 (data.sql)。 如果没有 GitHub 帐户,可以免费注册。 Azure Database for PostgreSQL 灵活服务器实例。 创建Azure Dat...
Build(deps): Bump actions/setup-go from 5.2.0 to 5.3.0 Jan 28, 2025 .openvex/templates Initialize the VEX feed Dec 16, 2023 cmd Update go-github from v68.0.0 to v69.0.0 Feb 10, 2025 deploy Kicbase/ISO: Update docker from 27.4.0 to 28.0.0 (#20436) Feb 21, 2025 enhancements ...
steps:-name:Storebuildtimestamprun:echo"BUILD_TIME=$(date +'%T')">>$GITHUB_ENV-name:Deployusingstoredtimestamprun:echo"Deploying at $BUILD_TIME" 设置环境变量 注意***:为了避免问题,无论所用操作系统和 shell 的行为为何,最好将环境变量视为区分大小写。 Bash...