{"id":19789503,"url":"https://github.com/webfreak001/deploy-nightly","last_synced_at":"2025-04-13T10:44:14.669Z","repository":{"id":36217755,"uuid":"215382911","full_name":"WebFreak001/deploy-nightly","owner":"WebFreak001","description":"Deploy an asset to a GitHub release with date and commit hash and delete old assets.","archived":false,"fork":false,"pushed_at":"2025-02-18T23:19:02.000Z","size":1155,"stargazers_count":23,"open_issues_count":5,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T04:33:05.302Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebFreak001.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":"2019-10-15T19:43:55.000Z","updated_at":"2025-02-01T18:56:31.000Z","dependencies_parsed_at":"2023-01-11T20:41:54.216Z","dependency_job_id":"3bec0943-2459-4c3a-8c10-33aeb6b3d51e","html_url":"https://github.com/WebFreak001/deploy-nightly","commit_stats":{"total_commits":27,"total_committers":7,"mean_commits":3.857142857142857,"dds":0.2592592592592593,"last_synced_commit":"d147b5dbd2cb8245d2b5f83a41f5ebe9957575b4"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fdeploy-nightly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fdeploy-nightly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fdeploy-nightly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fdeploy-nightly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebFreak001","download_url":"https://codeload.github.com/WebFreak001/deploy-nightly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248702084,"owners_count":21148114,"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":[],"created_at":"2024-11-12T06:33:47.151Z","updated_at":"2025-04-13T10:44:14.645Z","avatar_url":"https://github.com/WebFreak001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deploy-nightly\n\nDeploy a nightly release to a GitHub release. Supports deleting old nightlys and automatically insert a shortened hash + date.\n\n## Example\n\n```yaml\n\nname: Deploy Nightly\non:\n  # This can be used to automatically publish nightlies at UTC nighttime\n  schedule:\n    - cron: '0 2 * * *' # run at 2 AM UTC\n  # This can be used to allow manually triggering nightlies from the web interface\n  workflow_dispatch:\n\njobs:\n  nightly:\n    name: Deploy nightly\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [ubuntu-latest, windows-latest, macOS-latest]\n    runs-on: ${{ matrix.os }}\n    steps:\n      ... # build your asset first\n\n      - name: Deploy Windows release\n        if: matrix.os == 'windows-latest'\n        uses: WebFreak001/deploy-nightly@v3.1.0\n        with:\n          upload_url: https://uploads.github.com/repos/Pure-D/serve-d/releases/20717582/assets{?name,label} # find out this value by opening https://api.github.com/repos/\u003cowner\u003e/\u003crepo\u003e/releases in your browser and copy the full \"upload_url\" value including the {?name,label} part\n          release_id: 20717582 # same as above (id can just be taken out the upload_url, it's used to find old releases)\n          asset_path: ./myapp.zip # path to archive to upload\n          asset_name: myapp_windows-nightly-$$.zip # name to upload the release as, use $$ to insert date (YYYYMMDD) and 6 letter commit hash\n          asset_content_type: application/zip # required by GitHub API\n          max_releases: 7 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted\n          ignore_hash: true # optional, if there is already a release associated with the repo's current commit, should we go ahead and upload the asset anyway.\n```\n\n### Advanced Use\n\nif you want to publish a release to another repository or from a different commit, you can configure the API token, API repository endpoint and commit sha for the generated filename like this:\n\n```yml\nwith:\n  # can be used to specify a custom token, otherwise defaults to the auto\n  # generated token for the current GitHub Action context `${secrets.GITHUB_TOKEN}`\n  token: ${secrets.MyCustomToken}\n  # used for checking for existing files by inserting into the filename (only\n  # the first 6 characters are used)\n  sha: 547fdf5\n  # this is where the API calls go to list asset files, must match the repo from\n  # the upload_url\n  repo: Pure-D/serve-d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fdeploy-nightly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfreak001%2Fdeploy-nightly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fdeploy-nightly/lists"}