{"id":19042477,"url":"https://github.com/serverless/github-action","last_synced_at":"2025-04-14T05:16:57.490Z","repository":{"id":37768202,"uuid":"162762382","full_name":"serverless/github-action","owner":"serverless","description":":zap::octocat: A Github Action for deploying with the Serverless Framework","archived":false,"fork":false,"pushed_at":"2025-01-06T17:09:42.000Z","size":31,"stargazers_count":667,"open_issues_count":34,"forks_count":175,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-03-30T23:07:53.481Z","etag":null,"topics":["github-actions","serverless","serverless-framework"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverless.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-21T22:18:53.000Z","updated_at":"2025-03-27T21:28:07.000Z","dependencies_parsed_at":"2024-11-23T00:01:30.482Z","dependency_job_id":"756c11da-b7e1-42cf-87bb-b7b25fd2406d","html_url":"https://github.com/serverless/github-action","commit_stats":{"total_commits":42,"total_committers":11,"mean_commits":"3.8181818181818183","dds":0.5,"last_synced_commit":"189dd6854a3b12ecff4a02c49351779f919933ca"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fgithub-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fgithub-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fgithub-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverless%2Fgithub-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverless","download_url":"https://codeload.github.com/serverless/github-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569118,"owners_count":20959760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","serverless","serverless-framework"],"created_at":"2024-11-08T22:37:57.306Z","updated_at":"2025-04-07T00:11:36.490Z","avatar_url":"https://github.com/serverless.png","language":"Dockerfile","readme":"# Github Action for Serverless\n\nThis Action wraps the [Serverless Framework](https://serverless.com) to enable common Serverless commands.\n\n## This project is looking for maintainers!\n\nIf you would like to be a maintainer of this project, please reach out to one of the active [Serverless organization](https://github.com/serverless) members to express your interest.\n\nWelcome, and thanks in advance for your help!\n\n## Usage\n\nAn example workflow to deploy a project with serverless v3:\n\n\n```yaml\nname: Deploy master branch\n\non:\n  push:\n    branches:\n      - master\n\njobs:\n  deploy:\n    name: deploy\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        node-version: [18.x]\n    steps:\n    - uses: actions/checkout@v3\n    - name: Use Node.js ${{ matrix.node-version }}\n      uses: actions/setup-node@v3\n      with:\n        node-version: ${{ matrix.node-version }}\n    - run: npm ci\n    - name: serverless deploy\n      uses: serverless/github-action@v3.2\n      with:\n        args: deploy\n      env:\n        SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}\n        # or if using AWS credentials directly\n        # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n```\n\n## Usage with serverless plugins\nChange your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/28), thanks to @matthewpoer:\n```yaml\n    - name: Install Plugin and Deploy\n      uses: serverless/github-action@v3.2\n      with:\n        args: -c \"serverless plugin install --name \u003cplugin-name\u003e \u0026\u0026 serverless deploy\"\n        entrypoint: /bin/sh\n```\n\n## Fix \"This command can only be run in a Serverless service directory\" error\nChange your action in this way, according to [this issue](https://github.com/serverless/github-action/issues/53#issuecomment-1059839383), thanks to @nikhuber:\n```yaml\n    - name: Enter dir and deploy\n      uses: serverless/github-action@v3.2\n      with:\n        args: -c \"cd ./\u003cyour-dir\u003e \u0026\u0026 serverless deploy\"\n        entrypoint: /bin/sh\n```\n\n\n## Use serverless v1 or v2\nChange the action with one of the following:\n```yaml\nuses: serverless/github-action@v1\n```\n```yaml\nuses: serverless/github-action@v2\n```\n\n\n## License\n\nThe Dockerfile and associated scripts and documentation in this project are released under the Apache-2 license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fgithub-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverless%2Fgithub-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverless%2Fgithub-action/lists"}