This guide explains how to publish this repository as a GitHub Action.
✅ Ready to publish! The repository structure is already compatible with GitHub Actions.
Users can use your action directly without publishing to the marketplace:
- name: Setup Aptos CLI
uses: your-username/aptos-cli-setup@mainSteps:
- Push your code to GitHub
- Update the README.md to replace
WGB5445with your actual GitHub username - That's it! Users can start using it immediately
To publish to the GitHub Marketplace for better discoverability:
Prerequisites:
- Repository must be public
- Repository must have a valid license
- Repository must have a detailed README
Steps:
- Go to your repository on GitHub
- Click "Settings" tab
- Scroll down to "Features" section
- Check "Allow GitHub Actions to be created by GitHub Marketplace"
- Click "Save"
- Go to "Actions" tab
- Click "Publish to Marketplace"
- Fill in the required information:
- Action name: "Setup Aptos CLI"
- Description: "Download and install Aptos CLI on CI environments"
- Category: "Development"
- Icon: Upload an appropriate icon
- Screenshots: Add usage examples
- Release notes: Describe the action
Your repository already has the correct structure:
aptos-cli-setup/
├── action.yml # Action definition
├── README.md # Documentation
├── LICENSE # MIT License
├── .github/
│ └── workflows/
│ ├── test.yml # Test workflow
│ └── example.yml # Example usage
├── test-local.sh # Local testing
└── validate-action.sh # Validation script
- name: Setup Aptos CLI
uses: WGB5445/aptos-cli-setup@main- name: Setup Aptos CLI
uses: WGB5445/aptos-cli-setup@main
with:
version: "7.6.0"- name: Setup Aptos CLI
uses: WGB5445/aptos-cli-setup@v1.0.0 # Use a specific tag- Users can use
@mainfor the latest version - Users can use
@v1.0.0for specific versions (after you create tags)
- Create releases with semantic versioning (v1.0.0, v1.1.0, etc.)
- Each release should have a corresponding tag
-
Local Testing:
./test-local.sh ./validate-action.sh
-
GitHub Actions Testing:
- Push to GitHub
- Check that the test workflow runs successfully
- Test on different platforms (Linux, macOS, Windows)
-
Integration Testing:
- Create a test repository
- Use your action in a workflow
- Verify it works as expected
- Monitor Aptos CLI releases
- Update the default version in README when needed
- Test with new Aptos CLI versions
- Respond to issues promptly
- Provide clear documentation
- Consider adding more examples
- The action downloads from official Aptos releases
- No custom code execution beyond CLI installation
- Uses official GitHub Actions runners
- MIT license allows commercial use
- ✅ Replace
WGB5445in README.md with your actual GitHub username (already done) - Push to GitHub
- Test the action in a real workflow
- Consider publishing to Marketplace for better discoverability
- Share with the Aptos community!
If you need help:
- Check the GitHub Actions documentation
- Review the GitHub Marketplace guidelines
- Open an issue in this repository