# 🚀 Build and Publish Serverless Functions with GitHub Actions

**URL:** <https://forum.dfinity.org/t/build-and-publish-serverless-functions-with-github-actions/51080>\
**Category:** Developers\
**Created:** [June 19, 2025, 8:51pm UTC](https://forum.dfinity.org/t/build-and-publish-serverless-functions-with-github-actions/51080 "2025-06-19T20:51:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [June 19, 2025, 8:51pm UTC](https://forum.dfinity.org/t/build-and-publish-serverless-functions-with-github-actions/51080/1 "2025-06-19T20:51:33Z")

</div>

Hey 👋

I figured this deserved its own thread.

As part of the latest Juno [release](https://forum.dfinity.org/t/latest-juno-releases/36771/32), I’m excited to share that developers can now **build and publish** serverless functions directly from **GitHub Actions** - without giving up control or needing a DevOps degree to make it work!

Since we’re on an ICP-dedicated forum, let me put it this way:

> You can now build and publish canisters from GitHub Actions without storing a controller in GitHub or writing a hundred-line YAML file.

And the cherry on top?

Everything is handled through the CLI. So if you prefer local development or don’t want to use GitHub runners, that’s totally fine. No lock-in. No enforced reliance on Web2 infrastructure, that is not the spirit.

Here’s what it looks like in action:

```yaml
name: Publish Serverless Functions

on:
  workflow_dispatch:
  push:
    branches: [main]

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          node-version: 22
          registry-url: "https://registry.npmjs.org"

      - name: Install Dependencies
        run: npm ci

      - name: Build
        uses: junobuild/juno-action@full
        with:
          args: functions build

      - name: Publish
        uses: junobuild/juno-action@full
        with:
          args: functions publish --no-apply
        env:
          JUNO_TOKEN: ${{ secrets.JUNO_TOKEN }}

```

Enjoy—and as always, feedback welcome!

Announcement blog post 👉 [https://juno.build/blog/serverless-functions-github-actions](https://juno.build/blog/serverless-functions-github-actions)

---

<div class="post-metadata">

**Author:** ![ZanderG](https://avatars.discourse-cdn.com/v4/letter/z/b2d939/32.png) [@ZanderG](https://forum.dfinity.org/u/ZanderG)\
**Post date:** [June 20, 2025, 7:08am UTC](https://forum.dfinity.org/t/build-and-publish-serverless-functions-with-github-actions/51080/2 "2025-06-20T07:08:16Z")

</div>

I can confirm that it works perfectly — a great addition to the already impressive Juno platform!🚀👏
