Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/darwin-stubs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 80b3d4a57d34
Choose a base ref
...
head repository: NixOS/darwin-stubs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7dfb2e8f6bf1
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 26, 2020

  1. Copy the full SHA
    828d119 View commit details
  2. Merge pull request #4 from thefloweringash/upload-release-asset

    Add github workflow to upload stable tarball
    LnL7 authored Nov 26, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7dfb2e8 View commit details
Showing with 51 additions and 0 deletions.
  1. +51 −0 .github/workflows/upload-release-asset.yml
51 changes: 51 additions & 0 deletions .github/workflows/upload-release-asset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Adapted from the example workflow at
# https://github.com/actions/upload-release-asset

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Upload Release Asset

jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
strategy:
matrix:
version: [ '10.12' ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create tarball
run: >
tar
--sort=name
--mtime="@$(git log -1 --format=%ct)"
--owner=0 --group=0 --numeric-owner
--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
-cf stubs-${{ matrix.version }}.tar.gz
-C stubs
${{ matrix.version }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./stubs-${{ matrix.version }}.tar.gz
asset_name: ${{ matrix.version }}.tar.gz
asset_content_type: application/gzip