Token and Secret Management

by default

- name: something ...
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

using a personal access token (PAT)

  1. repo → settingsSecrets and variablesActionsNew repository secret
  2. using in workflow (example):
    - name: deploy binaries to GitHub Release
     uses: softprops/action-gh-release@v2
     with:
       files: |
         dist/mtui-darwin-arm64
         dist/mtui-linux-amd64
         dist/mtui-windows-amd64.exe
     env:
       GITHUB_TOKEN: $
    
Copyright © marslo 2020-2024 all right reserved,powered by GitbookLast Modified: 2025-06-18 01:57:32

results matching ""

    No results matching ""