About the book
- Learn how to set up and customise your GitHub Actions workflows
- Implement Continuous Integration and Continuous Deployment
- Optimise performance and security of your actions
- Discover advanced techniques and best practices
Book summary
GitHub Actions Essentials is your definitive guide to mastering the world of GitHub Actions, a powerful automation tool that simplifies your software development workflow. From setting up your first workflow to exploring advanced techniques and best practices, this comprehensive resource covers everything you need to know to streamline your development process.
With practical examples and step-by-step instructions, you'll learn how to create custom actions, implement continuous integration and deployment, optimise workflow performance, and automate project management tasks. Whether you're a seasoned developer or just getting started with GitHub Actions, this book will empower you to unlock the full potential of automation in your projects, saving you time and improving your software quality.
Table of contents
1. Introduction
- What are GitHub Actions?
- Why use GitHub Actions?
- GitHub Actions vs. Other CI/CD Tools
2. Getting Started with GitHub Actions
- Setting Up Your Repository
- Understanding YAML Syntax
- Anatomy of a GitHub Actions Workflow
3. Building Your First Workflow
- Workflow Triggers: Events and Scheduling
- Defining Jobs and Steps
- Using Pre-Built Actions
- Running Shell Commands
4. Managing Workflow Execution
- Environment Variables and Secrets
- Job and Step-Level Conditions
- Matrix Builds and Parallelisation
5. Creating Custom GitHub Actions
- Docker-based Actions vs. JavaScript-based Actions
- Building a Docker-based Action
- Building a JavaScript-based Action
- Versioning and Publishing Your Custom Action
6. Leveraging the GitHub Actions Marketplace
- Discovering and Evaluating Actions
- Popular Actions for Common Tasks
- Integrating Third-Party Services
7. Implementing Continuous Integration
- Automated Testing
- Code Quality and Linting
- Code Coverage and Reporting
8. Implementing Continuous Deployment
- Deploying to Cloud Platforms
- Deploying to On-Premises Servers
- Deploying Static Websites and GitHub Pages
9. Securing & Optimising Workflows
- Workflow Security Best Practices
- Caching & Artifact Management
- Performance Optimisation Tips
10. Advanced Techniques
- Workflow Templates & Reusable Workflows
- Handling Workflow Dependencies
- Automating Project Management
11. Conclusion
- Recap of Key Concepts
- Further Resources & Learning
Appendices
- Appendix A: YAML Reference
- Appendix B: Useful Actions & Integrations
About the author
Dave Cross is a freelance software engineer with a career in the IT industry that spans more than three decades. Having worked extensively with source code control throughout his career, Dave is well-versed in the intricacies of the subject. As an experienced Perl practitioner, he has authored several books on the topic and is a regular speaker at tech conferences.
Since adopting git and GitHub in 2008, Dave has gained valuable insights into these platforms, which he shares in GitHub Actions Essentials to help readers make the most of the powerful automation tool for their development workflows.
Testimonials
“This is a professionally written general introduction to GitHub and its Actions feature. I found the writing and examples clear and concise. Well worth the price compared to the other offerings at the time.”